regex tips
Posted 2004-02-25 @ 11:13:47
Good ONLamp article: Five Habits for Successful Regular Expressions.
It's never occurred to me to use whitespace and comments to enhance readability, and I simply wasn't aware that Perl and PHP were so flexible regarding their regex delimiters. Turns out you can use any non-alphanumeric or whitespace character. To my recollection, I've only ever seen pipes and slashes.
©2002-2008 kevin c smith