How do I throw this into a regular expression where MON can be any three letter month and YYYY is the year, etc..?
MON ## - MON ##, YYYY
MON ##, YYY1 - MON ##, YYY2
MO1 ## - MO2 ##, YYYY
MON ## - MON ##, YYYY
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.
I suppose that would be
(Note: you may need to tweak that to account for things that aren’t clear in your question — for example, can the day-of-month be just one digit, or must it be two?)
But I have to wonder if this is the best way to do whatever it is that you’re trying to do. Are you familiar with
java.text.SimpleDateFormat? (What exactly is it that you’re trying to do?)