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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Amount of money
Expression
^[-+]?\d+([.,]\d{0,2}){0,1}$
Description
matches a number with maximum 2 digits after seperator. also american sepratar "." as german/european seperator "," is accepted
Matches
123.45 -123,45 0,12 1234567,78
Non-Matches
1.234 ,43 1,234,567.32 - 123,
Author Rating: Not yet rated. Martin Hauck
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

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