Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Help with regEXby Codon (Friar) |
on Sep 14, 2005 at 16:57 UTC ( [id://491927]=note: print w/replies, xml ) | Need Help?? |
Get rid of that substitution:
And then you can use the "digit" metacharacter \d: For your learning pleasure: the reason your original regex failed is you were getting all characters that were not a lower-case letter in a greedy fasion. That sucked up the entire string with your first atom. There were no digits left to match. Might I suggest Mastering Regular Expressions for much more information.
Ivan Heffner Sr. Software Engineer, DAS Lead WhitePages.com, Inc.
In Section
Seekers of Perl Wisdom
|
|