method RegExp.exec
Private
RegExp.exec(string: string): RegExpExecArray | null

Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.

Parameters

string: string

The String object or string literal on which to perform the search.

Return Type