Hello All,

I tried to do the following, and retrieve the 20 as a value:

$pattern = '.*?Instances=(\d+)';
$str = 'Network traffic is Instances=20 bytes';

@ls = $str =~ m/($pattrn)/g;

print $ls;


but it didn't work for me.
Thanks
Chanan

_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl

Reply via email to