From 79dccfdae9981be60648f0299dc3e5c632b134ae Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Wed, 27 Nov 2002 03:30:17 +0000 Subject: [PATCH] Fix parameter typo: order->flags. Added to examples. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@105987 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pcre/functions/preg-match-all.xml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/reference/pcre/functions/preg-match-all.xml b/reference/pcre/functions/preg-match-all.xml index b7deaa9e5a..dd7767904b 100644 --- a/reference/pcre/functions/preg-match-all.xml +++ b/reference/pcre/functions/preg-match-all.xml @@ -1,5 +1,5 @@ - + @@ -19,7 +19,7 @@ Searches subject for all matches to the regular expression given in pattern and puts them in matches in the order specified by - order. + flags. After the first match is found, the subsequent searches are continued @@ -41,11 +41,13 @@ ]+>(.*)]+>|U", "example:
this is a test
", $out, PREG_PATTERN_ORDER); print $out[0][0].", ".$out[0][1]."\n"; print $out[1][0].", ".$out[1][1]."\n"; +?> ]]>
@@ -73,11 +75,13 @@ example: , this is a test ]+>(.*)]+>|U", "example:
this is a test
", $out, PREG_SET_ORDER); print $out[0][0].", ".$out[0][1]."\n"; print $out[1][0].", ".$out[1][1]."\n"; +?> ]]>
@@ -125,8 +129,10 @@ print $out[1][0].", ".$out[1][1]."\n"; Getting all phone numbers out of some text. ]]> @@ -136,6 +142,7 @@ preg_match_all ("/\(? (\d{3})? \)? (?(1) [\-\s] ) \d{3}-\d{4}/x", Find matching HTML tags (greedy) ]]>