I think he was trying to say you should take a look at the manual regarding regular expressions.
Once you get to the part that explains what [^ ] actually does you see how obvious the answer is. However, the synical reply from LuC isn't correct. 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. bvr. [EMAIL PROTECTED] wrote: >>Try thinking? >> > >Don't be a jerk. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php