<regex> Internal Library
Baseline regular-expression scaffold.
Import
import rx "<regex>"
API
match(pattern, text) -> boolcaptures(pattern, text) -> arraycaptures_full(pattern, text) -> dict
Regex APIs use the C regex engine (regcomp/regexec) and return actual regex results.
captures returns group 0..N entries for the first match.
captures_full returns:
matched: boolfull: full match string (group 0) ornonegroups: array of group0..Nnamed: dictionary of named captures
Named capture syntax supported:
(?<name>...)(?P<name>...)