On 18.05.2004 15:11, [EMAIL PROTECTED] wrote:

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

<map:match type="regexphost" > indeed works (for other expressions)

The working of different expressions depend on the regexp implementation in use. In Cocoon it's either Apache Jakarta RegExp, Apache Jakarta Oro or Sun JDK RegExp.


For the matcher the Jakarta RegExp package is in use:
http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/java/org/apache/cocoon/matching/AbstractRegexpMatcher.java?rev=1.4&view=markup

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

While Jakarta Oro claims Perl5 compatibility Jakarta RegExp does not.

If you need Perl5 compatibility you probably have to write your own matcher.

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

On the other hand if it is just one match you want to exclude, just add a matcher before the one above, that matches on cocoon. This works because the first matcher matching the expression wins.


Joerg

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



Reply via email to