Five Habits for Successful Regular Expressions (O'Reilly)
[Posted August 27, 2003 by cook]
Tony Stubblebine
gives some tips for dealing with regular expressions in
Perl, Python, and PHP.
"
Regular expressions are hard to write, hard to read, and hard to maintain. Plus, they are often wrong, matching unexpected text and missing valid text. The problem stems from the power and expressiveness of regular expressions. Each metacharacter packs power and nuance, making code impossible to decipher without resorting to mental gymnastics."
(
Log in to post comments)