Re: regex operators

From: Date: Wed, 15 Oct 2003 11:01:43 +0000
Subject: Re: regex operators
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-4858@lists.php.net to get a copy of this message
On Tue, Oct 14, 2003 at 11:44:07AM -0700, Rasmus Lerdorf wrote: > We have enough operators folks. Regular expressions, especially since we > have two different varieties of them, are confusing enough as they are. > let's not add to the confusion by obfuscating the syntax around them. Some of the confusion around regexes is caused because there is no regex literal (and type) in PHP. This way, you have to type \\\\ to get one literal backslash in the regex instead of just two... I don't say this needs to be changed, but it would be nice if such a thing existed (and even nicer if those literals could be used with both posix and pcre)... -- Regards, Stefan Walk <swalk@prp.physik.tu-darmstadt.de>

« previous php.internals (#4858) next »