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
|
|---|