regex for decimal

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have an input I want to check is a valid price ie 23.99 or 21 or

If i check numeric or numbers it will come up false because of the
full stop... how do I check that numeric and one full stop please

any help appreciated

Re: regex for decimal

mail@phpfailure.php wrote:
Quoted text here. Click to load it

Using ?

E. Dronkert

Re: regex for decimal

or your regex expression wuold resemble:


the \. (slash period) gets around the fullstop.

is this what you're after?

Quoted text here. Click to load it

Site Timeline