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>
--
[EMAIL PROTECTED]


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



Reply via email to