Reply to Re: preg_match - how to match \x00 (null)?

Your name:

Reply:


Posted by Yandos on 06/07/06 08:43

"Chung Leong" <chernyshevsky@hotmail.com> wrote in
news:1149629004.581297.79180@h76g2000cwa.googlegroups.com:

>
> The PCRE library does expect the pattern to be a null-terminate
> string. It is capable of looking for \0 though. Instead of the
> double-quoted string, use single-quotes instead:
>
> $replacestring='/\x00\x01\x02\x03/im';
>
> Now PCRE will see the escape sequences and correctly compile the
> regexp.
>

Works great, thank you!

Y.

--
sorry for any ads below :(

Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php

[Back to original 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

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