Tin mới
JavaScript: Scripting language
Web APIs: Programming interfaces
Structuring content with HTML module
Dynamic scripting with JavaScript module
The match() method of String values retrieves the result of matching this string against a regular expression.
RegExp.prototype[Symbol.match]()
The implementation of String.prototype.match doesn't do much other than calling the Symbol.match method of the argument with the string as the first parameter. The actual implementation comes from RegExp.prototype[Symbol
When the regexp parameter is a string or a number, it is implicitly converted to a RegExp by using new RegExp(regexp).
This page was last modified on Jul 10, 2025 by MDN contributors.