How can I write a proper regex for:
/Date(1518238800000)/ - matches
jdsjdsj - no match
2017/03/12 - no match
12 - no match
Date() - no match
/Date(1218238800000)/ - matches
What I have so far is:
var res = str.match(/Date(\d*)/g);
How can I amend the regex to work?