Module Libregexp

Low-level bindings to QuickJS's libregexp - Regular Expression Engine

ES2023-compliant regex engine with Unicode support. These are raw C bindings; for a higher-level API, use Quickjs.RegExp.

Compile a regular expression pattern into bytecode. Returns pointer to bytecode buffer, or NULL on error with message in error_msg.

Execute a compiled regex against input string. Returns: 1 = match, 0 = no match, -1 = error

Get number of capture groups (including group 0 for full match)

Get pointer to null-terminated group names

Get flags from compiled bytecode