<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>
</html>