in reply to Re^2: How to modify my regex?
in thread How to modify my regex?
You're very welcome. It may seem a bit churlish to bring this up after your gracious thanks, but it dawned on me that the subject of the OP was familiar, and I was right: Re^3: Substitution don't work discusses a similar problem. Updates 2 & 3 there give contrasting examples of .* versus .*? (greedy versus lazy) behavior. (Also see the discussion there of the effect of the /s regex modifier on the behavior of the . (dot) metacharacter when matching against a multi-line string.)
These comments are not intended to give you a hard time, but to suggest that the advice of the humble Monks will be of more value to you the more attention you pay it.
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to modify my regex?
by OldChamp (Acolyte) on Aug 27, 2015 at 16:50 UTC | |
by AnomalousMonk (Archbishop) on Aug 28, 2015 at 17:12 UTC |