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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find List of digits, CSV
Expression
^(\d{4},?)+$
Description
Accepts a list of 4 digits separated by commas. Used to validate a list of years. Can be easily customized to change the number of digits.
Matches
2001,2002,2003 | 1999 | 1999,2000,
Non-Matches
123 | 1234,e,1234 | 1234, 1234,1234
Author Rating: The rating for this expression. Luc Boudreau
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-2025, RegexAdvice.com | ASP.NET Tutorials