I want to have a simple capture and test program for a specific date format (Which is not compatible with Date.parse - NaN) with this RegEx:
/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/ //day/month/year
It works on the rubular tester but using it in chrome yields weird results:
dateRegex.test("19111/7/1992")
> true
"19111/7/1992".match(dateRegex) //Wrong on purpose
> ["11/7/1992", "11", "7", "1992"] //Why is it matching 11?
Is there any specific to JavaScript RegEx that i need to be aware of?