showing results for - "new regexp with test"
Juan Esteban
19 Sep 2017
1
2 var str = "The best things in life are free";
3var patt = new RegExp("e");
4
5 var res = patt.test(str);