Using the RegExp().exec()
this method works well in chrome and edge but not working in IE11 and its lower version.
Eg:
regExp = "^(\d\d?)(\/)(\d\d?)(\/)(\d{4})$"
value = "1/1/2018"
match = new RegExp(regExp).exec(value); //returns null value in ie11
The above RegExp is converted into /^(\d\d?)(/)(\d\d?)(/)(\d{4})$/ as result of new RegExp(regExp) but still getting null value. please check the image below click here