use flags with the constructor function of regular expression # 31


let str = "Larry Page is a good and famous programmer is in the world";
let regx = new RegExp("is", "g");
let result = str.match(regx);
console.log(result)

Post a Comment

Previous Post Next Post