On Monday, March 4, 2002, at 05:28  AM, bvr wrote:

> To match the dot character (.) you should use escape it like this: \.
> Otherwise the dot will match any character for it's a 'wildcard' and 
> the result of your replace will be empty.

I thought that in this example (in this thread) the dot was being used 
inside of a character class -- and that it does not need to be escaped 
when it is inside of a character class (wouldn't make sense for "match 
any character" to exist inside a character class).

[^A-Za-z0-9\.]


Erik


----

Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to