String.match(regexp: string | RegExp): RegExpMatchArray | null
Matches a string with a regular expression, and returns an array containing the results of that search.
regexp: string | RegExp
A variable name or string literal containing the regular expression pattern and flags.
RegExpMatchArray | null