Re: keeping the dot

From: Date: Mon, 04 Mar 2002 15:59:23 +0000
Subject: Re: keeping the dot
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-87112@lists.php.net to get a copy of this message
On Monday, March 4, 2002, at 10:50 AM, Erik Price wrote:
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\.]
whoops, finished that email too soon. What I was trying to say was that the above regex character class will not be functionally any different from [^A-Za-z0-9.] in theory, because the backslash doesn't really escape the dot (since dots aren't meta-characters in character classes) and the backslash can't represent a backslash without its own escape (it would need to be "\\" to do this). I think. I am not a regex guru, but that's my unrequested contribution to this thread. Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com

« previous php.general (#87112) next »