|
|
| more useful options | |
| PerlMonks |
Help with regEXby blackadder (Hermit) |
| on Sep 14, 2005 at 09:12 UTC ( [id://491849]=perlquestion: 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.blackadder has asked for the wisdom of the Perl Monks concerning the following question:
Hi *Sorry this is rather simple, but RegEx is my weakest points I have lines like this: And I only want to capture the numbers in the string. i.e I tried this code: By which i mean; scan from left to right, from the begining of the string, ignore multiple alphabetical chars, grab multiple digits, save it to memory. However it doesn't seem to work Can some one please enlighten me on how I can do this. Thanks ********* UPDATE ****************** Ok I did this it returned the right values, but still wondering if there is a better way for doing this - without destroying the original string?
Blackadder
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||