... 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?
In reply to Re^3: Regex Problem - alternative searched
by BrowserUk
in thread Regex Problem - alternative searched
by Skeeve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |