You're viewing a comment by Seungwon Jeong and its responses.

October 17, 2009, 18:31

In No. 70, the one-liner duplicates "\n" character and uses "\([ -~]*\n\)" pattern.

In my humble opinion, It tries to do whole line match (somewhat like "grep -x").

In sed, the pattern "." matches with "\n" character. So it uses the pattern "\([ -~]*\n\)", not just "(.*\)", I think.

For me, however, the pattern "[ -~]" doesn't match with all printable characters. I don't know why. I use GNU sed version 4.1.5.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "0day": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.