Mmatch
Bun

method

ffi.CString.match

regexp: string | RegExp
): null | RegExpMatchArray;

Matches a string with a regular expression, and returns an array containing the results of that search.

@param regexp

A variable name or string literal containing the regular expression pattern and flags.

matcher: { [match](string: string): null | RegExpMatchArray }
): null | RegExpMatchArray;

Matches a string or an object that supports being matched against, and returns an array containing the results of that search, or null if no matches are found.

@param matcher

An object that supports being matched against.