In message <imi442$bjr$1...@dough.gmane.org>, "Thomas Wiedmann" writes:
>May be, but what's the solution, i. e. how must the RegExp statement be 
>written, that texts like "mytext-end" are not matched?

I already answered your question.  You confirmed firsthand that
jakarta regexp does not support negative lookahead assertions (and I
can find no trace in the javadocs suggesting it does).  If you can't
switch to an API that supports the construct, there is no single
regular expression you can write that will perform the match you desire.
You will have to write a loop that searches for the prefix and then looks
ahead to check for the undesired suffix after each match.  As I said before:

  "oro and java.util.regex implement zero-width negative lookahead
  assertions.  You should probably use java.util.regex."

good luck,
daniel


---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-user-unsubscr...@jakarta.apache.org
For additional commands, e-mail: regexp-user-h...@jakarta.apache.org

Reply via email to