http://www.perlmonks.org?node_id=427526


in reply to Problem with regex

I don't know what your problem is. When I try:
use strict; my $line = "this is a test=234567 line"; my ($value) = $line =~ /.*test=(\d+)/; print $value;
I get nicely:
234567

pelagic