note 74586 deleted from function.preg-grep by tularis
| From: | tularis@php.net | Date: | Fri, 20 Apr 2007 14:08:30 +0000 |
| Subject: | note 74586 deleted from function.preg-grep by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-125617@lists.php.net to get a copy of this message | ||
Note Submitter: nyos at SAMEASUSERNAME dot homelinux dot net
Reason: useless
----
When the pattern is bounded by '/' character, it must be escaped by \ in the pattern, like
this:
preg_match_all('/<b>((?:(?!<\/b>).)*)<\/b>/is',$string,$matches);
BTW, good example.