Ninjakreborn Posted August 11, 2010 Share Posted August 11, 2010 "/^[0-9]{1,2}\-\[0-9]{1,2}\-\[0-9]{4}$/" How can I make this check for mm/dd/yy instead of mm-dd-yy like it is now? I just need it to check for / instead of the - symbols. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/210391-regex-question/ Share on other sites More sharing options...
JasonLewis Posted August 11, 2010 Share Posted August 11, 2010 Try #^[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}$# Quote Link to comment https://forums.phpfreaks.com/topic/210391-regex-question/#findComment-1097873 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.