I want to check if a variable contains a price, like
$19.99
It definitely would be a dollar sign, two integers a dot and
two integers. Here is what I tried which doesn't work.
if (ereg("\$([0-9]{2}).([0-9]{2})", $Price))
or
if (ereg("\$([0-9]{2})\.([0-9]{2})", $Price))
Thanks.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
- [PHP] Quick Regex Question Jeff Oien
- Re: [PHP] Quick Regex Question CC Zona
- Re: [PHP] Quick RegEx Question Jeff Oien
- Re: [PHP] Quick RegEx Question Jon Jacob
- Re: [PHP] Quick RegEx Question Jon Jacob
- Re: [PHP] Quick RegEx Question Jack Dempsey

