Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <p>The multiline property returns true if the "m" modifier is set, otherwise it returns false.</p> <p>Click the button to check whether or not the "m" modifier is set.</p> <button onclick="myFunction()">Try it</button> <p id="demo"></p> <script> function myFunction() { var str = "Visit W3Schools!"; var patt1 = /W3S/gi; var res = patt1.multiline; document.getElementById("demo").innerHTML = res; } </script> </body> <!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_regexp_multiline by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:27:41 GMT --> </html>
Result:
Try it Yourself - © w3schools.com