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]?[0-9]?((\,[0-9][0-9][0-9])*)?(\.[0-9][0-9]?)?$
Description
Matches
$1,456,983.00 | $1,700.07 | $68,944.23
Non-Matches
$20,86.93 | $1098.84 | $150.
Author Rating: Not yet rated. Snikwad Kcirtap
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: Slightly modified
Name: Luuk2005
Date: 9/12/2021 3:31:54 AM
Comment:
It could match the dollar-sign at the very end of lines, or also match lines like....... $,111 Slightly modded: \$(?!,|$)[0-9]{0,3}(,[0-9]{3})*(\.[0-9]{1,2})?$ or to mandate 1-digit after $ \$[0-9]{1,3}(,[0-9]{3})*(\.[0-9]{1,2})?$


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