in reply to really non greedy match
/START(?:(?!START|END).)*END/
I wonder if the following is faster/START(?:(?!START).)*?END/
/ START (?> [^SE]* (?:S+(?!TART))? (?:E+(?!ND))? )* END /x
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: really non greedy match
by Allasso (Monk) on Apr 24, 2010 at 21:44 UTC | |
by ikegami (Patriarch) on Apr 25, 2010 at 16:38 UTC |