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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Persian date (Jalali)
Expression
^[1-4]\d{3}\/((0?[1-6]\/((3[0-1])|([1-2][0-9])|(0?[1-9])))|((1[0-2]|(0?[7-9]))\/(30|([1-2][0-9])|(0?[1-9]))))$
Description
Regular expression to validate Persian(Jalali) date, that supports days in month except isfand(espand) in leap years
Matches
1379/05/31,1379/6/3,1379/07/29,1379/10/30,1379/11/30,1379/12/30,1379/12/29
Non-Matches
1379/05/32,1379/6/0,1379/7/31,1379/11/31,1379/12/31
Author Rating: The rating for this expression. Vahid Mardani
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-2018, RegexAdvice.com | ASP.NET Tutorials