String.prototype.match() - JavaScript | MDN
The match() method of String values retrieves the result of matching this string against a regular expression.