Title |
Test
Find
Date With / and Month Name
|
Expression |
^(3[0-1]|2[0-9]|1[0-9]|0[1-9])[\/](Jan|JAN|Feb|FEB|Mar|MAR|Apr|APR|May|MAY|Jun|JUN|Jul|JUL|Aug|AUG|Sep|SEP|Oct|OCT|Nov|NOV|Dec|DEC)[\/]\d{4}$ |
Description |
This regular expressions matches dates of the form XX/XXX/YYYY where XX can be 1 or 2 digits long, XXX can be JAN/Jan/jan(Month name in 3 char) and YYYY is always 4 digits long. |
Matches |
11/jun/1980, 11/JUN/1980, 11/Jun/1980 |
Non-Matches |
11 jun 1980, 11-jun-1980 |
Author |
Rating:
Umesh Chand Daiya
|
Source |
|
Your Rating |
|
Title: Date With / and Month Name
Name: jellytree
Date: 3/28/2023 1:04:18 AM
Comment:
The other commenter is correct - this works beautifully except that the day must be entered as two digits, not one or two. Thank you, though for the hard work.
Title: Date With / and Month Name
Name: Jurisfox
Date: 9/4/2008 2:34:42 AM
Comment:
>This regular expressions matches dates of the form XX/XXX/YYYY where XX can be 1 or 2 digits long
Never, because you set two digits as precondition inside the capturing group (...0[1-9])