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
Navigation:
[Reply to this message]
|