|
|
| XP is just a number | |
| PerlMonks |
Re: Help with regEXby Codon (Friar) |
| on Sep 14, 2005 at 12:57 UTC ( [id://491927]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
|
|
||||||||||||||||||||||||