resultuse strict; my $line = "this is a test=234567 line"; if ($line =~ /.*test=(\d+)/){ print $1; }
Good Luck!!234567
In reply to Re: Problem with regex
by chanakya
in thread Problem with regex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |