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. 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}$# Link to comment https://forums.phpfreaks.com/topic/210391-regex-question/#findComment-1097873 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.