Validation - is numeric, is currency

peterk900

Member
Is the Is Numeric validation plug in still available and, if so, where can it be downloaded ?

I tried to use the regular expression validation with /^[0-9]([.,][0-9]{1,3})?$/ as below - but although the validation appears to be set up correctly, every number I enter is rejected.

fabrik_2505a.png


I also tried /^[0-9]{3}-[0-9]{3}-[0-9]{4}|[0-9]{10}|[(][0-9]{3}[)][0-9]{3}-[0-9]{4}$/ from the Wiki which apparently should allow a string of numbers but this also fails.

What am I doing wrong ? Thanks.
 
I managed to solve this via php validation:

Currency
fabrik_2505b.png

Numeric

fabrik_2505c.png

If someone can tell me why my use of the Regular Expression plug-in failed that would be great - though I suppose the php route is better as it is more powerful and can include regular expressions as shown above.
 
Thanks for following up with your solution.

I'm not sure why the RE's didn't work, they look OK to me, but RE's can be a bit persnickety.

-- hugh
 
Thanks hugh - only too pleased to report back when I manage to solve a problem ! I'll do some more experiments with some RE's and post again if I get an expression to work.
 
We are in need of some funding.
More details.

Thank you.

Staff online

Members online

Back
Top