Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 318
  • Last Modified:

Need Regular Expression

hello I need a regualr expression

basically money without $ or comma no blanks

1999.25  

0 would be accpeptable

Thanks
Chuck
0
Charles Baldo
Asked:
Charles Baldo
  • 2
  • 2
2 Solutions
 
Terry WoodsIT GuruCommented:
^\d+(.\d*)?$
0
 
Terry WoodsIT GuruCommented:
Sorry, the . should be escaped:

^\d+(\.\d*)?$
0
 
HonorGodCommented:
Do you want to limit the number of decimal places?

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

Good luck & have a great day.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now