in reply to Regex Problem - alternative searched
Does Java do non-greedy matching? If so, you could try /<!--(.+?)--(.)/ and reject the match unless $2 is '>'. That might avoid the stack problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex Problem - alternative searched
by Skeeve (Parson) on May 18, 2007 at 13:05 UTC | |
by BrowserUk (Patriarch) on May 18, 2007 at 13:47 UTC | |
by Skeeve (Parson) on May 18, 2007 at 14:32 UTC | |
by BrowserUk (Patriarch) on May 18, 2007 at 14:57 UTC | |
by Skeeve (Parson) on May 18, 2007 at 15:16 UTC | |
|