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 [EMAIL PROTECTED]  2002-01-10 14:08 -------
Perhaps the most confusing thing about the difference between RegExpURIMatcher
and WildcardMatcher is that the same pattern ("") are treated as polar opposites.
When I want to match the URI http://localhost/ and redirect to
http://localhost/index.html, my first inclination is to use an empty string to
match.

If I wanted to explicitly match all requests, I would use "**" for the Wildcard
matcher, and "(.*)" for the RegExp matcher.  Both of those give me the same
results for the replacement parameter {1}.

It is for that confusion that I don't think it is valid for RegExp Matcher
to match all URIs with the "" pattern.  Perhaps the RegexpURIMatcher can
silently rewrite the "" pattern to "^$" and log a warning message.

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

Reply via email to