RegExp

constructor(s: String, syntax_flags: Int = ALL, match_flags: Int = 0)

Constructs new RegExp from a string. Same as RegExp(s, ALL).

Parameters

s

regexp string

Throws

if an error occurred while parsing the regular expression