note 99955 deleted from function.preg-replace by danbrown
| From: | danbrown@php.net | Date: | Thu, 16 Sep 2010 15:12:15 +0000 |
| Subject: | note 99955 deleted from function.preg-replace by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172642@lists.php.net to get a copy of this message | ||
Note Submitter: yhtr at libero dot it
----
Hi, I would to remove link from comments:
example: from <a href="link">Read</a> in <strong>Read</strong>
$preview = preg_replace('#<a href="(.*)">(.*)</a>#',
'<strong>$2</strong>', $comment);
In this way doesn't happen anything...