![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: Complicated regexp problemby Anonymous Monk |
on Aug 02, 2017 at 17:24 UTC ( #1196573=note: print w/replies, xml ) | Need Help?? |
(a-z_) should probably be ([a-z_]*), or better yet, (\w*). You're asking for trouble by putting your pattern in a string before using it in a regex. To avoid multiple-quoting headaches, use qr like this:
In Section
Seekers of Perl Wisdom
|
|