RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Pattern Title
Expression
^\$?\d+(\.(\d{2}))?$
Description
To evaluate an amount with or without a dollar sign where the cents are optional.
Matches
$2.43 | 2.02 | $2112
Non-Matches
2.1 | $.14 | $2,222.12
Author Rating: Not yet rated. Daniel Repaci
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials