note 59858 added to function.preg-match-all
| From: | php-general at lists dot php dot net | Date: | Sun, 18 Dec 2005 14:16:03 +0000 |
| Subject: | note 59858 added to function.preg-match-all | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-100373@lists.php.net to get a copy of this message | ||
Two match all occurrences between and including any two HTML tags, here <tr> and </tr>
preg_match_all("/(\<[
\\n\\r\\t]{0,}tr[^>]*\>|\<[^>]*[\\n\\r\\t]{1,}tr[^>]*\>){1}
([^<]*<([^(\/>)]*(\/[^(t>)]){0,1}(\/t[^(r>)]){0,1})*>)*
(\<[ \\n\\r\\t]{0,}\/tr[^>]*\>|\<[^>]*[\\n\\r\\t]{1,}\/tr[^>]*\>){1}/i",
$string, $Matches);
----
Manual Page -- http://www.php.net/manual/en/function.preg-match-all.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59858
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59858&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59858&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59858&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59858&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59858&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59858&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59858&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59858&report=yes
Search -- http://master.php.net/manage/user-notes.php