in reply to Problem with regex
use strict; my $line = "this is a test=234567 line"; if ($line =~ /.*test=(\d+)/){ print $1; } [download]
234567 [download]