From e3a5bb2767bbb9a47f3cf0d0c556b2d2d969d09c Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Sun, 19 Jul 2009 23:58:43 +0000 Subject: [PATCH] Fixed bug #48806 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@284401 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pcre/functions/preg-match-all.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/pcre/functions/preg-match-all.xml b/reference/pcre/functions/preg-match-all.xml index aee2a0a59d..f2988675a9 100644 --- a/reference/pcre/functions/preg-match-all.xml +++ b/reference/pcre/functions/preg-match-all.xml @@ -242,7 +242,7 @@ preg_match_all("/\(? (\d{3})? \)? (?(1) [\-\s] ) \d{3}-\d{4}/x", // required because the string is in double quotes. $html = "bold textclick me"; -preg_match_all("/(<([\w]+)[^>]*>)(.*)(<\/\\2>)/", $html, $matches, PREG_SET_ORDER); +preg_match_all("/(<([\w]+)[^>]*>)(.*?)(<\/\\2>)/", $html, $matches, PREG_SET_ORDER); foreach ($matches as $val) { echo "matched: " . $val[0] . "\n";