RegExpObject.global 属性

定义

获取一个值,指示是否使用匹配所有匹配项的全局标志 (/g) 来执行搜索。Gets a value indicating whether searches are performed with the global flag (/g), matching all occurrences.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 property bool global { bool get(); };
public bool global { get; }
member this.global : bool
Public ReadOnly Property global As Boolean

属性值

Boolean

如果执行全局搜索,则为 true;否则为 falsetrue if global searches are performed; otherwise, false.

适用于

另请参阅