You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/01/10 21:37:17 UTC
DO NOT REPLY [Bug 5791] -
RegExp Matcher always matches "" as positive!
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5791>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5791
RegExp Matcher always matches "" as positive!
------- Additional Comments From vgritsenko@apache.org 2002-01-10 12:37 -------
This is an expected behavior for RegExp. If you want to match "" using RegExp,
you must supply appropriate RE expression for this. Example:
<map:match type="regexp" uri="^$">
<map:redirect-to href="index.html"/>
</map:match>
Works perfectly.
Please refer to
http://jakarta.apache.org/regexp/apidocs/org/apache/regexp/RE.html for details
on RegExp syntax.
Shall we mark this as invalid?
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org