Skeeve has asked for the wisdom of the Perl Monks concerning the following question:
Hi RegExperts...
Sometimes I have to work with Java... Sometimes I simply hate it! This is one of those occasions...
I have a very simple regular expression I use very often in perl. It matches XML comments_ <!--([^-]|-[^-])*-->
Now guess what happens when you feed this to Java!
Can anyone of you think of an alternative RegEx to match an XML comment?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex Problem - alternative searched
by xicheng (Sexton) on May 18, 2007 at 15:30 UTC | |
by Skeeve (Parson) on May 18, 2007 at 15:52 UTC | |
|
Re: Regex Problem - alternative searched
by BrowserUk (Patriarch) on May 18, 2007 at 11:08 UTC | |
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 | |
|