0

i just want to have a regexp for this string mm/dd/yyyy. Ex is 06/25/2016. Thanks for the help in advance.

2 Answers 2

1
^[0-1][0-9]\/[0-3][0-9]\/[0-9]{4,4}$

Regex101 is a good site to test your regex

Sign up to request clarification or add additional context in comments.

1 Comment

No problem. If you navigate to my link and paste in the regex, you can see how the different character matches. I use it allways when I create Regexs
1

THis should help

[0-1][0-9]\/[0-3][0-9]\/[0-2][0-9]{3}

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.