|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: New to perl and regexby NetWallah (Monsignor) |
| on Nov 19, 2012 at 02:17 UTC ( #1004469=note: print w/ replies, xml ) | Need Help?? |
|
Welcome to the Monastery ! You have other problems with unmatched "[" and the strange "$" as a regex modifier. I have fixed that - and modified your target selelection slightly by adding a trailing "$". Now - if you supply a string of "this that other 555" it will NOT match, because it matches 2 digits, but fails on the trailing "$" in the regex. "By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest." -Confucius
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||