TypeScript String match()
Syntax & Examples
Syntax of String.match()
The syntax of String.match() method is:
match(regexp: string | RegExp): RegExpMatchArray | null
This match() method of String matches a string with a regular expression, and returns an array containing the results of that search.