ES6 RegExp toString() ES6 RegExp split() ES6 Example1 Map operations ES6 RegExp toString() var str = "Javascript is an interesting scripting language"; var re = new RegExp( "script", "g" ); var result = re.toString(str); console.log("Test 1 - returned value : " + result); re = new RegExp( "/", "g" ); var result = re.toString(str); console.log("Test 2 - returned value : " + result) ES6 RegExp split() ES6 Example1 Map operations