var str = "1405199610"; var re = new RegExp("\d{10}"); var myArray = re.test(str);
myArray gives false!
How is this possible? I tested this with online rigs and it checks everything is fine. When I try to use it in the console or jsfiddler, it does not work. Did I miss something?
source share