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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Numeric week and year (WW/YYYY)
Expression
^(([1-4][0-9])|(0[1-9])|(5[0-2]))\/[1-2]\d{3}$
Description
This pattern can be used to validate a numeric week (between 01 and 52) and four digit year (valid years between 1000 and 2999) separated by a slash in the form of WW/YYYY.
Matches
47/2006
Non-Matches
00/3005
Author Rating: The rating for this expression. Bob Yexley
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: Mr.
Name: Kevin
Date: 10/13/2008 1:39:47 PM
Comment:
great, how can i change the year range to 1753-2999? thanks


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