note 71800 rejected from function.preg-match by nlopess
| From: | nlopess@php.net | Date: | Sun, 17 Dec 2006 19:15:18 +0000 |
| Subject: | note 71800 rejected from function.preg-match by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120678@lists.php.net to get a copy of this message | ||
Note Submitter: aiko at one dot lt
----
$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" ?