<html>
<body>
<h2>JavaScript Regular Expressions</h2>
<p>Perform a search for the characters "THIS" in a string.</p>
<p id="demo"></p>
<script>
let text = "THIS This this";
let result1 = text.match(/[THIS]/g);
let result2 = text.match(/[THIS]/gi);
document.getElementById("demo").innerHTML =
result1 + "<br>" +result2;
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_regexp_charset_gi by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:39:13 GMT -->
</html>