klyn.regex.RegEx.RegEx
constructor
public native RegEx(pattern as String, flags as Int = 0) throws RegExException
Description

RegEx constructor.

Parameters
ParameterDescription
patternThe regular expression pattern as a string.
flagsOption bits; bit 1 enables case-insensitive matching.
Throws
  • RegExException if the pattern is not a valid regular expression.
Example

regex = RegEx("^klyn$", flags=1)