ES6 RegExp source ES6 RegExp multiline ES6 RegExp.prototype.sticky ES6 RegExp source var str = "Javascript is an interesting scripting language"; var re = new RegExp( "script", "g" ); re.test(str); console.log("The regular expression is : " + re.source); ES6 RegExp multiline ES6 RegExp.prototype.sticky