note 84173 rejected from function.preg-replace by mgf
| From: | mgf@php.net | Date: | Wed, 02 Jul 2008 10:00:21 +0000 |
| Subject: | note 84173 rejected from function.preg-replace by mgf | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141058@lists.php.net to get a copy of this message | ||
Note Submitter: Santosh Patnaik
----
@Jasper: I gave a simplistic example for readability. Look at this less example for what I am trying
to convey:
<?php
// Does not work
preg_replace('`
((<!\[CDATA\[)(.+?)(\]\]>))|((<!--)(.+?)(-->))|((<pre>)(.+?)(</pre>))
`sme', '"$1". strtolower("$2"). "$3"', $t);
?>
Even for that simpler example, the truth remains that what one would expect to work, does not work.