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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org