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?
In reply to Regex Problem - alternative searched by Skeeve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |