Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re(2) Regex String Matchingby Arien (Pilgrim) |
on Sep 09, 2002 at 04:55 UTC ( [id://196162]=note: print w/replies, xml ) | Need Help?? |
$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 Section
Seekers of Perl Wisdom
|
|