Result: dum is 10#! /usr/bin/perl $str = <<HERE ; abc 10 abc 11 abc 12 abc 13 abc 14 HERE ($dum) = $str =~/abc\s(\d+)/gs ; print "dum is $dum\n" ;
In reply to REGEXP: only need last matching string by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |