tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: IP based request filters for admin/manager
Date Mon, 19 Jul 2010 22:20:29 GMT
Christopher Schultz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Johan,
> 
> On 7/18/2010 11:48 PM, Johan Martinez wrote:
>> Started afresh and got it working finally.
>>
>>  I tried with and without escape character and both worked.
> 
> Probably because . matches '.'.

Yep. :-)

Johan, if you are still there, a bit more explicitly :

The regexp /123.123.123.123/ will match th string "123.123.123.123", but also the strings

"123#123#123#123" and "123?123X123+123" (and many other similar ones), because in a regexp

a non-escaped "." matches any single character.

On the other hand, the regexp /123\.123\.123\.123/ will only match the string 
"123.123.123.123", because escaping the "." by a backslash means "a literal dot".


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message