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
^\$[+-]?([0-9]+|[0-9]{1,3}(,[0-9]{3})*)(\.[0-9]{1,2})?$
Description
This expression is little tricky since the $ sign is includeded in the expression itself. So whenever you want to make use of the expression be sure to prepend $ sign to the value if it's not present.
Matches
$-1 | $-1.0 | $1,234.42
Non-Matches
anything that doesn't start with $ | $.13 | $2.
Author Rating: Not yet rated. Chandrasing Patil
   Displaying page 1 of 1 pages; Items 1 to 1

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