ignoreCase

プロパティ(R) Property Type (R)
正規表現オブジェクト.ignoreCase Regular expression object format. IgnoreCase
Commentary
大文字小文字を無視するかどうかの状態を示します。 Indicates whether to ignore the case. 無視する場合はtrue、そうでない場合にはfalseになります。 To ignore is true, otherwise false. 読み出しのみで書き込みはできません。 You can not write only read.
サンプルコード Sample code
str = "RegExp Sample Text. String Match Test."; str = "RegExp Sample Text. String Match Test.";
reObj = new RegExp("S+","gi"); reObj = new RegExp ( "S +", "gi");
result = str.match(reObj); result = str.match (reObj);
outputs[0] = "一致した数は"+result.length+"。ignoreフラグ:"+reObj.ignoreCase; outputs [0] = "number of matches" + result.length + ". ignore flag:" + reObj.ignoreCase;