HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p>Click the button to check whether "i" modifier is set.</p> <button onclick="myFunction()">Click me</button> <p id="point"></p> <script> function myFunction() { var str = "a1 b12 c144 d1728 e20736"; // Try to change 'i' to 'g' var pattern = /\d{3}/i; var result = pattern.ignoreCase; document.getElementById("point").innerHTML = result; } </script> </body> </html>
OUTPUT
×

Save as Private