note 30007 deleted from function.preg-replace by sniper
| From: | sniper@php.net | Date: | Tue, 30 Sep 2003 12:32:21 +0000 |
| Subject: | note 30007 deleted from function.preg-replace by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57480@lists.php.net to get a copy of this message | ||
Note Submitter: myren
----
if there's going to be leading text before your expression begins matching, the text will be in
$1, concattenated with your first memory subsitution. do a (.*)$yourexpression to match all the
preceeding text into $1 itself, and then your first (memory_expression) will be in $2.