replace
| From: | Mark McIntyre | Date: | Fri, 05 Jan 2001 03:20:05 +0000 |
| Subject: | replace | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-32810@lists.php.net to get a copy of this message | ||
Is it possible to replace all strings in a document, unless that string is
within a tag? A quick example: Say I want to delete all occurances of the
letter 'a', but want to leave links intact. That is:
<a href="aaa.html">this is a fantastic test</a>
should become:
<a href="aaa.html">this is fntstic test</a>
Any help will be appreciated. :)