プロパティ(R) Property Type (R)
正規表現オブジェクト.global Regular expression object format. Global
Commentary
グローバルマッチ状態を示します。 Indicates the state of global match. 全体から検索を行うグローバルマッチになっている場合はtrue、そうでない場合にはfalseになります。 If it is to search the entire global match 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+","g"); reObj = new RegExp ( "S +", "g");
result = str.match(reObj); result = str.match (reObj);
outputs[0] = "一致した数は"+result.length+"、グローバルマッチフラグ:"+reObj.global; outputs [0] = "number of matches" + result.length + ", GUROBARUMATCHIFURAGU:" + reObj.global;