Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Regex Critic?by QM (Parson) |
on Nov 18, 2013 at 15:28 UTC ( [id://1063125]=perlquestion: print w/replies, xml ) | Need Help?? |
QM has asked for the wisdom of the Perl Monks concerning the following question:
I'm looking for a regex critic or list of traps or otherwise "(Almost) Never Do This in Regex" lists.
In our $shop we have a static analyzer for several languages, and one thing I noticed is it doesn't catch odd stuff like m/^.*blah.*$/, and other bad practices (it doesn't even try). Perl Critic doesn't seem to do this either. I don't really need something automated, though that would be nice. A collection of "Bad Programmer" examples would be appreciated. Any good leads for this? Perhaps a bolt-on module for YAPE::Regex? -QM
Back to
Seekers of Perl Wisdom
|
|