What have you tried? Are all of your lines going to be exactly the same with an integer at the end of the line?
#!/usr/bin/perl use warnings; use strict; my $str = "http://172.20.37.115:8080/se/1.0/provision/subscribers/1989 +68"; $str =~ /.*\/(\d+)$/; my $var = $1 || ''; print "$var\n";
-stevieb
In reply to Re: how to find particular string and store in to variable
by stevieb
in thread how to find particular string and store in to variable
by bhushanQA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |