in reply to Take digits from a string
"..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 }
|
|---|