You're replying to a comment by Seungwon Jeong.

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 handle, if you have one.)

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

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