English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
JavaScript RegExp RegExp Object
ignoreCaseThe property indicates whether the regular expression uses the " i
”flag (modifier).
It is true if the 'i' modifier is set; otherwise, it is false
regex.ignoreCase
var str = "HELLO WORLD"; var regex = /Hello/i; regex.ignoreCase; // trueTest See‹/›
All browsers fully support the ignoreCase property:
Properties | |||||
ignoreCase | Yes | Yes | Yes | Yes | Yes |
Writable: | No |
---|---|
Enumerable: | No |
Configurable: | Yes |
Return Value: | It is true if the 'i' modifier is set; otherwise, it is false |
JavaScript Version: | ECMAScript 1 |