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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Persian Date
Expression
^1[34][0-9][0-9]\/((1[0-2])|([1-9]))\/(([12][0-9])|(3[01])|[1-9])$
Description
a simple expression to validate Persian dates.
Matches
1377/12/4 1388/4/31 1390/6/14 1389/03/1
Non-Matches
1290/12/2 1388/0/8
Author Rating: The rating for this expression. paiman roointan
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: best persian date
Name: h.karimi
Date: 2/7/2011 7:18:37 AM
Comment:
(13|14)\d\d[/]([1-9]|0[1-9]|1[012])[/](0[1-9]|1[0-9]|2[0-9]|3[0-1]|[1-9])


Title: new persian date
Name: MAHDi YOUSEFPOUR
Date: 10/3/2010 6:40:28 AM
Comment:
^1[34][0-9][0-9]\/(0[1-9]|1[0,1,2])\/((0[1-9]|[12][0-9]|3[0,1]))$ Matches: 1389/01/01 1389/01/31 no matches: 1389/1/1 1389/1/31


Title: new persian date
Name: MAHDi YOUSEFPOUR
Date: 10/3/2010 6:39:46 AM
Comment:
^1[34][0-9][0-9]\/(0[1-9]|1[0,1,2])\/((0[1-9]|[12][0-9]|3[0,1]))$ Matches: 1389/01/01 1389/01/31 no matches: 1389/1/1 1389/1/31


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