Layout Options

  • Fixed Header
    Makes the header top fixed, always visible!
  • Fixed Sidebar
    Makes the sidebar left fixed, always visible!
Regular Expression Ignore Case

Description

The ignoreCase property specifies whether or not the 'i' modifier is set. The property returns true if the modifier is set, false otherwise.

This property has the form:

RegExpObject.ignoreCase

Examples

The following example shows the basic use of this property.

<script>
var pattern=/Java/i;
if(pattern.ignoreCase)
{
  document.write("i mod: set");
}
else
{
  document.write("i mod: not set");
}
</script>

This produces the following result:

Browser Support

Firefox IE Chrome Opera Safari