hi to all regex master out there, I know you have a work around with regards to my problem. hehe
02-May-2011
or
22-May-2011
or
2-May-2011
(dd-MMM-yyyy)
with yyyy not accepting any other characters than digit
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s assuming that the month is a 3-letter version: eg, Jan, Feb, Mar.
Updated version to match the changes to the question:
As has been mentioned, this won’t actually validate the date, it’ll just validate that the string matches the format of: 1 or 2 numbers, a dash, 3 letters, a dash, 4 numbers.