XP is just a number | |
PerlMonks |
Re: simple questionby sundialsvc4 (Abbot) |
on May 06, 2012 at 14:19 UTC ( [id://969140]=note: print w/replies, xml ) | Need Help?? |
Have a read about the /g modifier in regular expressions: it lets you apply a regex more than one time to the same string. Now you can, in a loop, collect all of the character-strings which match “one or more not-a-digit” and concatenate them into a new string.
In Section
Seekers of Perl Wisdom
|
|