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)
at org.apache.regexp.RECompiler.terminal(RECompiler.java:884)
at org.apache.regexp.RECompiler.closure(RECompiler.java:942)
at org.apache.regexp.RECompiler.branch(RECompiler.java:1151)
at org.apache.regexp.RECompiler.expr(RECompiler.java:1203)
at org.apache.regexp.RECompiler.terminal(RECompiler.java:866)
at org.apache.regexp.RECompiler.closure(RECompiler.java:942)
at org.apache.regexp.RECompiler.branch(RECompiler.java:1151)
at org.apache.regexp.RECompiler.expr(RECompiler.java:1203)
at org.apache.regexp.RECompiler.compile(RECompiler.java:1281)
at
org.apache.cocoon.matching.AbstractRegexpMatcher.preparePattern(AbstractRege
xpMatcher.java:100)
at
org.apache.cocoon.www.sitemap_xmap.preparePattern(sitemap_xmap.java:657)
at
org.apache.cocoon.www.sitemap_xmap.prepareMatchers(sitemap_xmap.java:675)
at
org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:213)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:264)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:98)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
or(GeneratorSelector.java:187)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:267)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:512)
Thanks,
Troy Gould
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]