<html>
<body>
<h2>JavaScript Regular Expressions</h2>
<p>A search for "is" at the end of a string:</p>
<p id="demo"></p>
<script>
let text = "Is this his";
let pattern = /is$/;
let result = text.match(pattern);
document.getElementById("demo").innerHTML = result;
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_regexp_dollar by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:39:13 GMT -->
</html>