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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Zero excluding money amount
Expression
((0)+(\.[1-9](\d)?))|((0)+(\.(\d)[1-9]+))|(([1-9]+(0)?)+(\.\d+)?)|(([1-9]+(0)?)+(\.\d+)?)
Description
Zero excluding money amount
Matches
0.01, 0.10, 123.00, 46
Non-Matches
0, 0.0, 0.00, -1, -10.23. 11.234
Author Rating: Not yet rated. bask
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: Doesn't work if number has two zeros in sequence
Name: Kenny F.
Date: 6/6/2018 8:02:51 PM
Comment:
A number like 300.45 does not work.


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