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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^\d{1,8}$|^\d{1,3},\d{3}$|^\d{1,2},\d{3},\d{3}$
Description
Validates numeric input of 99,999,999 to 0 with or without commas. but no decimal places. Very simple, but not bad for a novice.
Matches
1000 | 12,345 | 12,345,678
Non-Matches
1.1 | 1,10 | 123,888,888
Author Rating: Not yet rated. Wayne Herndon
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: user
Name: user
Date: 1/26/2005 11:39:23 AM
Comment:
This will not work for negative inetgers..so sad!!!


Title: Simply the best
Name: Nisey Lee
Date: 3/8/2004 2:08:21 PM
Comment:
I was afraid I'd have to break down and write real code, then I found this


Title: Not bad for a novice....
Name: Young Jedi Apprentice
Date: 2/6/2004 1:57:10 PM
Comment:
This is probably the badest regular expression in the world. I searched the net for over 40 days looking for something similar to this. This is the greatest day of my life, next to my son's birth...


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