in reply to Take digits from a string

"..Is it possible to get this using any regex,pls?.."
Yes, something like so:

my $string = "nPqwe=2456fnraqe=13910feoption"; if ( my @digits = $string =~ m/[0-9]/g ) { print @digits; # print 245613910 }
Please also check perlrequick

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me