Tin mới
JavaScript: Scripting language
Web APIs: Programming interfaces
Structuring content with HTML module
Dynamic scripting with JavaScript module
Note: All RegExp static properties that expose the last match state globally are deprecated. See deprecated RegExp features for more information.
Because lastMatch is a static property of RegExp, you always use it as RegExp.lastMatch or RegExp["$&"], rather than as a property of a RegExp object you created.
This page was last modified on Aug 21, 2026 by MDN contributors.