Re: preg_match

From: Date: Sat, 20 Aug 2005 22:16:25 +0000
Subject: Re: preg_match
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-221016@lists.php.net to get a copy of this message
Richard Lynch wrote: > But Perl isn't going to *SEE* \\s !!! > > PHP is going to *EAT* \\ and make \ out of it. > > That's why \ is an escape character in PHP. > > It's also an escape character in Perl/PCRE. > > Some days I think PHP's escape character should have been | or > something, just so this topic wouldn't come up every damn month. All true, except you would then end up having problems with regexs like (this|or|that) :) Edin

« previous php.general (#221016) next »