Regular Expression for Bank Charges

Pedro Chagas
Pedro Chagas used Ask the Experts™
on
Hi E's,
I need a Regular Expression because I'm developing an application for banking matters, and in this case, I have to check some tax rate.
The RE just validate if the first character is a number/numbers, a end point, and in the end number/numbers again, like this examples:
0.1
11.45
0.000
0.975

Can you please help me?

The best regards, JC
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Multitechnician
Top Expert 2014
Commented:
function isNumeric(x) { // can be a string like "0.1" or a number 0.1
   return !isNaN(x);
}

Open in new window

Pedro ChagasWebmaster

Author

Commented:
Thanks again @leakim971.

Regards, JC

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial