klyn.regex.RegEx.RegEx
constructor

    public native RegEx(pattern as String, flags as Int = 0) throws RegExException:

Description

RegEx constructor.

Parameters

Parameter | Description
--- | ---
`pattern` | The regular expression pattern as a string.
`flags` | Optional integer representing regex flags (e.g., case-insensitive, multiline).

Throws

- RegExException if the pattern is not a valid regular expression.