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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Decimal Pattern
Expression
^(\d{1,8}|(\d{0,8}\.{1}\d{1,2}){1})$
Description
Validates a decimal with up to 8 whole places and up to two decimal places
Matches
1 | 1.22 | 12345678.11 | .34
Non-Matches
123456789 | 1.223234 | 123456789.11
Author Rating: Not yet rated. Vincent Faller
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