global

Summary

Returns whether the regular expression will perform a global match.

Usage

public property bool global()

Returns

true if the regular expression will perform a global match and false otherwise.

Description

Returns whether the regular expression has the "g" flag and will perform a global match.

Examples

Basic Usage
1
2
3
4
import System;
 
System.RegExp re = new System.RegExp(/abc/g);
Console.log(re.global); // true

Share

HTML | BBCode | Direct Link