Quickjs.RegExpSourceThe RegExp object
The result of a executing a RegExp on a string
type compile_error = [ | `Unexpected_end| `Malformed_unicode_char| `Invalid_escape_sequence| `Nothing_to_repeat| `Unknown of string ]Possible errors when compiling a RegExp pattern
Convert a compile error to a human-readable string
Constructs a RegExp.t from a string describing a regex and their flags. Returns Error (error_type, raw_message) if compilation fails.
sets the index at which the next match (RegExp.exec or RegExp.test) will start its search from
checks whether the given RegExp.t will match (or not match) a given string
returns all named capture groups as a list of (name, value) pairs
returns the value of a named capture group, or None if not found