JavaScript » RegExp » ignoreCase

Syntax:
object.ignoreCase

This property reflects whether the 'i' flag was used for a case-insensitive match of a regular expression in a string, returning true if it was and false if not. Note that this property is read-only but that calling the compile method does alter it.