HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p>Click the button to check whether "m" modifier is set.</p> <button onclick="myFunction()">Click me</button> <p id="point"></p> <script> function myFunction(){ var str = "Sam \nstyle Is \nwho is he \nIS"; var pattern = /is/m; var result = pattern.multiline; document.getElementById("point").innerHTML = result; } </script> </body> </html>
OUTPUT
×

Save as Private