<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Regular Expressions</h2>
<p>Search a string for "tch i.s.", and display the position of the match:</p>
<p id="demo"></p>
<script>
let text = "Visit tech i.s.!";
let n = text.search(/techis/i);
document.getElementById("demo").innerHTML = n;
</script>
</body>
</html>