Thursday January 16, 2003
Scrapple from the Apple
I'm often amazed at how vim's regular expressions just Do What I Mean.
Do I want to search for all lines that begin with a star ? The simpler
regexp that just-works is /^*/. No need to quote the star with a
backslash. Ditto for dollars that don't appear at the end of a pattern:
they match the litteral character $, not the end of line.
That's the right thing to do in a text editor, but I don't think that's
the right thing in a general-purpose programming language.
Title of this journal entry by Charlie Parker.