note 71800 added to function.preg-match
| From: | aiko at one dot lt | Date: | Sat, 16 Dec 2006 19:15:06 +0000 |
| Subject: | note 71800 added to function.preg-match | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120655@lists.php.net to get a copy of this message | ||
$subject = 'a <td> b </td> c <td> d </td> e ';
$pattern = '/td.*td/';
preg_match($pattern, $subject, $matches);
print_r($matches);
Array
(
[0] => td> b </td> c <td> d </td
)
Why not return is "td> b </td" ?
----
Server IP: 193.219.81.76
Probable Submitter: 84.15.66.60
----
Manual Page -- http://www.php.net/manual/en/function.preg-match.php
Edit -- https://master.php.net/note/edit/71800
Del: integrated -- https://master.php.net/note/delete/71800/integrated
Del: useless -- https://master.php.net/note/delete/71800/useless
Del: bad code -- https://master.php.net/note/delete/71800/bad+code
Del: spam -- https://master.php.net/note/delete/71800/spam
Del: non-english -- https://master.php.net/note/delete/71800/non-english
Del: in docs -- https://master.php.net/note/delete/71800/in+docs
Del: other reasons-- https://master.php.net/note/delete/71800
Reject -- https://master.php.net/note/reject/71800
Search -- https://master.php.net/manage/user-notes.php