ignoreCase
RegExp
instance property
JS Home <<
JS Reference <<
RegExp <<
ignoreCase
Description
Returns true
if ignore case flag set or false
otherwise.
Syntax
Signature | Description |
---|---|
aRegExp.ignoreCase | Returns true if ignore case flag set or false otherwise. |
Parameters
None.
Examples
The code below displays the ignoreCase
property of some RegExp
instances.
var aRegExp = /\d/;
var bRegExp = /\d/i;
var flagValues = new Array(2);
flagValues[0] = 'aRegExp ignore case set: ' + aRegExp.ignoreCase + '\n';
flagValues[1] = 'bRegExp ignore case set: ' + bRegExp.ignoreCase;
alert(flagValues);
Related Tutorials
JavaScript Intermediate Tutorials - Lesson 9 - Regular Expressions