Re: preg_match

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux