Hi Bushan,
This is a classic situation where a regular expression is your solution.
Please read http://perldoc.perl.org/perlretut.html
For your situation you need something like:
my $string = 'http://172.20.37.115:8080/se/1.0/provision/subscribers/1 +98968'; my ($wanted) = $string =~ m/ \d+$ /gx;
In reply to Re: how to find particular string and store in to variable
by 1nickt
in thread how to find particular string and store in to variable
by bhushanQA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |