| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/RegExp/n | [Back] [Original] |
Get to know MDN better
Avoid using this feature in new projects.
The RegExp static properties may have unintended side effects.
This feature may be a candidate for removal from web standards or browsers.
:
RegExp RegExp
RegExp.$1, , RegExp.$9
$1$9 RegExp RegExp.$1, RegExp.$2, RegExp
$1, , $9 RegExp RegExp undefined
RegExp 9
$1, , $9 String.prototype.replace() RegExp.$n
const str = "Test 24";
const number = /(\d+)/.test(str) ? RegExp.$1 : "0";
number; // "24"
re.test(str) RegExp.$n
| Legacy RegExp features # additional-properties-of-the-regexp-constructor |
| Web Proxy Viewer | New URL | Original Page |