flags

Summary

Returns the flags for the regular expression.

Usage

public property char[] flags()

Returns

A character array with the regular expression flags.

Description

Returns flags for the regular expression. (e.g. g for global matching, i for case-insensitive matching, and m for multi-line matching)

Examples

Basic Usage
1
2
3
4
import System;
 
System.RegExp re = new System.RegExp(/abc/gmi);
Console.log(re.flags); // [ `g`, `i`, `m` ]

Share

HTML | BBCode | Direct Link