perlre explains it well.
The workaround is to modify the * to be non-greedy, by adding a ?
$c_code =~ m/name="challenge" value="(.*?)"/;
In reply to Re: Regexp question
by RMGir
in thread Regexp question
by davidov0009
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |