in reply to Problem with regex
I don't know what your problem is. When I try:
pelagic
I get nicely:use strict; my $line = "this is a test=234567 line"; my ($value) = $line =~ /.*test=(\d+)/; print $value;
234567
pelagic
|
---|
In Section
Seekers of Perl Wisdom