Need Regular Expression

hello I need a regualr expression

basically money without $ or comma no blanks

1999.25  

0 would be accpeptable

Thanks
Chuck
Charles BaldoSoftware DeveloperAsked:
Who is Participating?
 
Terry WoodsConnect With a Mentor IT GuruCommented:
Sorry, the . should be escaped:

^\d+(\.\d*)?$
0
 
Terry WoodsIT GuruCommented:
^\d+(.\d*)?$
0
 
HonorGodConnect With a Mentor Software EngineerCommented:
Do you want to limit the number of decimal places?

^\d+(\.\d{,2)?$
0
 
Charles BaldoSoftware DeveloperAuthor Commented:
Thanks all
0
 
HonorGodSoftware EngineerCommented:
Thanks for the assist and the points.

Good luck & have a great day.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.