Answers for "new RegExp with .test"

0

new RegExp with .test

var str = "The best things in life are free";
var patt = new RegExp("e");

 var res = patt.test(str);
Posted by: Guest on August-29-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language