note 15983 rejected from function.ereg-replace by zak
| From: | zak@php.net | Date: | Thu, 11 Oct 2001 06:24:19 +0000 |
| Subject: | note 15983 rejected from function.ereg-replace by zak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-18813@lists.php.net to get a copy of this message | ||
ereg_replace('(="[0-9]")','=$number',$string);
how would i get rid of quotation marks found within an html tag, but only replace them if they have
a number between them.
e.g. ' <image src="image.gif" border="1"> would become ' <img
src="image.gif" border=1> '