HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p>Click the button to do a case-sensitive global search for octal number u0053 (S) in a string.</p> <button onclick="myFunction()">Click me</button> <p id="point"></p> <script> function myFunction(){ var str = "His style Is Who is he IS"; var pattern = /\u0053/g; var result = str.match(pattern); document.getElementById("point").innerHTML = result; } </script> </body> </html>
OUTPUT
×

Save as Private