![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re(4): $1 and regexby Arien (Pilgrim) |
on Aug 27, 2002 at 18:56 UTC ( [id://193238]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|