note 98773 deleted from function.preg-replace by danbrown
| From: | danbrown@php.net | Date: | Tue, 06 Jul 2010 22:55:01 +0000 |
| Subject: | note 98773 deleted from function.preg-replace by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-170745@lists.php.net to get a copy of this message | ||
Note Submitter: bvandale at hotmail dot com
----
Here's a better expression to remove php tags from content:
/<\?.*?\?>/s
The "s" pattern modifier makes the period meta-character (.) include newlines.