Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re(4): $1 and regex

by Arien (Pilgrim)
on Aug 27, 2002 at 18:56 UTC ( [id://193238]=note: print w/replies, xml ) Need Help??


in reply to Re^3: $1 and regex
in thread $1 and regex

When in doubt, make your regexes non-greedy. You'll stay out of a lot of trouble that way.

You will steer clear of some traps if you do that, but just to fall into others: instead of sometimes matching too much, you will sometimes match too little.

There is no magic cure for lack of knowledge or understanding. When in doubt, check the documentation and think.

— Arien

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2025-02-07 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (94 votes). Check out past polls.