note 22107 deleted from function.ereg by didou
| From: | didou@php.net | Date: | Sun, 07 Dec 2003 02:58:24 +0000 |
| Subject: | note 22107 deleted from function.ereg by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-61553@lists.php.net to get a copy of this message | ||
Note Submitter: musawir@ali.tf
----
Here is how to use regular expressions to verify currency input:
eregi('^[1-9]{1}[0-9]*[.]{1}[0-9]{2}$',$price)
where $price is your currency string variable