[][src]Function boa::builtins::string::match

pub fn match(this: &Value, args: &[Value], ctx: &mut Interpreter) -> ResultValue

Returns an array whose contents is all the results matching the regular expression, if the global (g) flag is present, in its absence, only the first complete match and its related capturing groups is returned, otherwise null is returned if no match is found. https://tc39.es/ecma262/#sec-string.prototype.match