Hi Monks,
I want to know how to write a regex to first find a pattern in a line and then capture the value just next to it. example
$line = "this is a test=234567 line";
Here i want to search for the pattern "test" and then get the value 234567 in a variable. I tried this
($value) = $line =~ /.*test=(\d+)/;
but this does not seem to be working. Can any one explain how to get what i expect. Thanks in advance.
regards,
Sid