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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 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
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Sr. P/A
Name: Ramaswamy
Date: 11/1/2006 2:02:04 PM
Comment:
Excellent!


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