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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details 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
   Displaying page 1 of 1 pages; Items 1 to 1

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