x
 
<html>
<body>
<script type="text/javascript">
var str = "Visit W3School";
var patt1 = new RegExp("S","i");
if(patt1.ignoreCase)
  {
  document.write("ignoreCase property is set");
  }
else
  {
  document.write("ignoreCase property is NOT set.");
  }
</script>
</body>
</html>