Urgent help needed in Regular expressions

  • Thread starter Thread starter Raghu Raman
  • Start date Start date
R

Raghu Raman

Hi,

I have to validate the amount field which may have 0 to 6 digits and a
decimal point followed by 2 digits.

I have picked the following expression from 4guysrolla.com ,but it
allows many digits before and after the decimal point.

Positive Number --- ^\d*\.{0,1}\d+$

example:

123456.99

I exactly need this type of format.

Could you please give me the solution.

Regards
Raghu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top