in reply to Re: Regex Problem - alternative searched
in thread Regex Problem - alternative searched
Yes. Non-greedy is possible.
But rejecting a hit isn't an option in my usecase.
I wanted to use the pattern in jEdit to search and destroy all comments in an XML file I'm editing.
To be honest, a simple should help in my case, but as I am a purist in some cases, I like having a pattern that matches real comments and not everything that looks similar to a comment ;-)
So the alternative I'm searching can't rely on additional checks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regex Problem - alternative searched
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 | |
by BrowserUk (Patriarch) on May 18, 2007 at 15:33 UTC |