Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re(2) Regex String Matching

by Arien (Pilgrim)
on Sep 09, 2002 at 04:55 UTC ( [id://196162]=note: print w/replies, xml ) Need Help??


in reply to Re: Regex String Matching
in thread Regex String Matching

$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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://196162]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2025-01-21 22:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (62 votes). Check out past polls.