<html>
<body>
<h2>JavaScript Regular Expressions</h2>
<p>A global search for the characters "i" and "s" in a string:</p>
<p id="demo"></p>
<script>
let text = "Do you know if this is all there is?";
let pattern = /[is]/gi;
let result = text.match(pattern);
document.getElementById("demo").innerHTML = result;
</script>
</body>
</html>