public native RegEx(pattern as String, flags as Int = 0) throws RegExException
RegEx constructor.
| Parameter | Description |
|---|---|
pattern | The regular expression pattern as a string. |
flags | Option bits; bit 1 enables case-insensitive matching. |
regex = RegEx("^klyn$", flags=1)