note 78006 deleted from function.preg-match-all by colder
| From: | colder@php.net | Date: | Sun, 23 Sep 2007 23:18:56 +0000 |
| Subject: | note 78006 deleted from function.preg-match-all by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-130731@lists.php.net to get a copy of this message | ||
Note Submitter: mihai at damianov dot net
Reason: integrated
----
The above example ("Example 1702. Find matching HTML tags") won't give you the
expected results if you add to the source text another <b></b> tag at the end.
For example having
$html="<b>bold text</b><a href=howdy.html>click me</a><b>second
bolded</b>";
will result in only one match, instead of three:
matched: <b>bold text</b><a href=howdy.html>click me</a><b>bold
text</b>
part 1: <b>
part 2: bold text</b><a href=howdy.html>click me</a><b>bold text
part 3: </b>
Any ideas how to fix this?