pub fn regexp_exec(recv: &Value, s: &str) -> Result<Value, String>
re.exec(s) — returns a match array ([full, ...captures] with .index, .input, .groups), or null. Advances lastIndex under g/y.
re.exec(s)
[full, ...captures]
.index
.input
.groups
null
lastIndex
g
y