You're replying to a comment by Nick Shyrokovskiy.
You're replying to a comment by Nick Shyrokovskiy.
I am being sponsored by Syntress since 2007! They bought me an amazing dedicated server to run catonmat on. If you're looking web services in Chicago area, I highly recommend the Syntress guys!
I love to read science books. They make my day and I get ideas for awesome blog posts, such as Busy Beaver, On Functors, Recursive Regular Expressions and many others.
Take a look at my
Amazon wish list, if you're curious about what I have planned reading next, and want to surprise me. :)


Hi. I think there is a little mistake in explaining item
"70. Delete duplicate, nonconsecutive lines from a file."
Namely you state that introducing double \n is to suppress greadyness of
[ -~]*\nbut gready part is[ -~]*and it just can't eat\nthat follows it, so one\nis enough.The purpose of double
\ni think is to handle to both cases1. repeated line is in front of the hold buffer
2. repeated line is somewhere in the middle of the hold buffer
Say you don't double and write(extended regexp):
Looks good, but it would work only in 2 case(middle or end)
and not in 1 case(begin) as
\nwould stay unmatched.Reply To This Comment