http://jakarta.apache.org/regexp/index.html

vs.

http://jakarta.apache.org/oro/index.html

I guess you have to implement your own Matcher using Oro.

Regards,

Joerg

Gould, Troy (ELS) wrote:

Does the regexp project used by Cocoon allow for Perl5 extended regular
expressions?

I'm trying to use a regular expression that uses zero-width negative
lookaheads.  My pattern is

^(?!localhost).*?$

which is used to match a string that doesn't start with localhost.

This doesn't seem to work with regexp (used by cocoon's RegExpMatcher
implementation), but it does with jakarta oro. I get the following
exception. Maybe my pattern is wrong for use with regexp project, but fine
for jakarta oro project?


org.apache.regexp.RESyntaxException: Syntax error: Missing operand to
closure
        at org.apache.regexp.RECompiler.syntaxError(RECompiler.java:253)

...


Thanks,
Troy Gould


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to