Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Take digits from a stringby Anonymous Monk |
on Nov 26, 2012 at 12:59 UTC ( [id://1005640]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $string= "nPqwe=2456fnraqe=13910feoption";
Hello Monks, I have a simple doubt, can anyone pls answer me? I have a string as mentioned above. I need to extract only the digits from it ie, i need the output as "245613910". Is it possible to get this using any regex,pls?
Back to
Seekers of Perl Wisdom
|
|