note 1656 deleted from ereg_replace by philip
| From: | philip@php.net | Date: | Mon, 27 Aug 2001 12:41:58 +0000 |
| Subject: | note 1656 deleted from ereg_replace by philip | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17200@lists.php.net to get a copy of this message | ||
The above did not work for me<BR>
<PRE>
ereg_replace( "[^0-9.]", "", $moneyprice)
</PRE>
Did the trick. It should be parsed as:
Any char not a number from 0 to 9, or a period.