Did you switch the map:match to use regexp instead of wildcard?

<map:matchers default="wildcard">
<map:matcher name="wildcard" factory="org.apache.cocoon.matching.WildcardURIMatcher"/>
<map:matcher name="regexp" factory="org.apache.cocoon.matching.RegexpURIMatcher"/>
</map:matchers>


so <map:match type="regexp" > should work.


I've never actually used this but this is how i would expect it to work. If it still fails then you should test your regexp first outside of cocoon in a POJO



[EMAIL PROTECTED] wrote:

How can I exclude a certain character string from a match?
I am using the RegexpHostMatcher for redirecting virtual hosts to their own directories. No problem so far.


Now, in order to keep Cocoon's samples and docs in $Cocoon-Home, I want to exclude "cocoon" from this match.

I searched for a suitable expression [1] and tried the following

================================
<map:match pattern="(.*(?!cocoon)):(.*)" type="regexphost">
  <map:mount check-reload="yes" src="/srv/www/{1}/" uri-prefix=""/>
</map:match>
================================

But I am only getting this error message:

  org.apache.avalon.framework.component.ComponentException:
  Invalid pattern '(.*(?!cocoon)):(.*)' for matcher at line ...

That's what I don't understand. How can I fix it?

Thanks for your attention

[1] <http://www.zvon.org/other/PerlTutorial/Output/example23.html>


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



Reply via email to