Re: keeping the dot
| From: | Erik Price | Date: | Mon, 04 Mar 2002 15:50:48 +0000 |
| Subject: | Re: keeping the dot | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-87110@lists.php.net to get a copy of this message | ||
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 pricee@hhbrown.com