in reply to Re^2: Regex Problem - alternative searched
in thread Regex Problem - alternative searched
... but as I am a purist in some cases, ...
Sometimes you have to sacrifice purity for practicality, especially in order to circumvent a bug/limitation in other peoples code. I tried to think of an alternative, to your regex, but anything I thought might work was inevitably more complex and therefore likely to exasperate the bug/limitation that is preventing you from using the 'right' solution.
Can Java regex can handle non-capturing grouping and negative lookbehinds?
If so, m[<!--(..(?:(?<!--).)+)-->] might bypass the bug?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Regex Problem - alternative searched
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 | |
by BrowserUk (Patriarch) on May 18, 2007 at 15:33 UTC |