Looking for a solution to create a capture and test program for a unique date format that isn't compatible with Date.parse (results in NaN) using the following RegEx:
/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/ //day/month/year
While it works on the rubular tester, using it in Chrome produces unexpected results:
dateRegex.test("19111/7/1992")
> true
"19111/7/1992".match(dateRegex) //Intentionally incorrect
> ["11/7/1992", "11", "7", "1992"] //Why is it matching 11?
Are there any JavaScript RegEx nuances that I should take into consideration?