From c29a3e36921842936a15ed7692cc1d690a068b22 Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Thu, 11 Jun 2009 23:07:37 +0000 Subject: [PATCH] The null byte is not an acceptable delimiter to PCRE. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@282003 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pcre/book.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/reference/pcre/book.xml b/reference/pcre/book.xml index b63fbf5818..e07522cf38 100644 --- a/reference/pcre/book.xml +++ b/reference/pcre/book.xml @@ -1,5 +1,5 @@ - + @@ -13,10 +13,11 @@ The syntax for patterns used in these functions closely resembles Perl. The expression must be enclosed in the delimiters, a forward slash (/), for example. Any character can be used for - delimiter as long as it's not alphanumeric or backslash (\). If - the delimiter character has to be used in the expression itself, - it needs to be escaped by backslash. Since PHP 4.0.4, you can also use - Perl-style (), {}, [], and <> matching delimiters. + delimiter as long as it's not alphanumeric, backslash (\), or the + null byte. If the delimiter character has to be used in the + expression itself, it needs to be escaped by backslash. Since PHP + 4.0.4, you can also use Perl-style (), {}, [], and <> + matching delimiters. See Pattern Syntax for detailed explanation.