![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Regular Expression Builderby Anonymous Monk |
on Aug 30, 2002 at 16:19 UTC ( #194157=note: print w/replies, xml ) | Need Help?? |
Given a string like "Rich36!", it would produce \w{4}\d{2}\! or \w+\d+\!. And why wouldn't it produce one of these
I mean, the tightest or least general thing it could produce when given a $string is just /\Q$string\E/ and the most general thing would be /.*/s, and between those is a rather large space of candidates.
In Section
Seekers of Perl Wisdom
|
|