$str =~ /str=([^&])*/;
There's a typo in that regex, you want the star inside the parens. (You are now putting the last non-ampersand following str=, if any, into $1.)
$str =~ /str=([^&]*)/;— Arien
In reply to Re(2) Regex String Matching
by Arien
in thread Regex String Matching
by Poblachtach32
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |