<!DOCTYPE html>
<html lang="en-US">
<body>
<p>Click the button to do a case-sensitive search for the characters except between "h" - "p" in a string.</p>
<button onclick="myFunction()">Click me</button>
<p id="point"></p>
<script>
function myFunction(){
var str = "His style Is who is he IS";
var pattern = /[^h-p]/g;
var result = str.match(pattern);
document.getElementById("point").innerHTML = result;
}
</script> </body>
</html>