You are here: Re: [PHP] preg_match « PHP « IT news, forums, messages
Re: [PHP] preg_match

Posted by Edin Kadibašić on 09/27/85 11:24

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация