"..Is it possible to get this using any regex,pls?.."
Yes, something like so:
Please also check perlrequickmy $string = "nPqwe=2456fnraqe=13910feoption"; if ( my @digits = $string =~ m/[0-9]/g ) { print @digits; # print 245613910 }
In reply to Re: Take digits from a string
by 2teez
in thread Take digits from a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |