On 10/09/2011 18:23, Irfan Sayed wrote:
hi,i have following string. $val = "11.0.56.10000"; i need to write regular expression which should match only "56" and print please suggest
I think you should forget about regular expressions and use split: my $sub = (split /\./, $val)[2]; HTH, Rob -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/