[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/RegExp/input [Back]  [Original]

RegExp.input ($_) - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

RegExp.input ($_)

Deprecated

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.

: . , , . , , , .

input . , . RegExp.$_.

In this article

RegExp.input
RegExp.$_

input , RegExp.input RegExp.$_.

.

input $_

js
var re = /hi/g;
re.test("hi there!");
RegExp.input; // "hi there!"
re.test("foo"); //  ,  
RegExp.$_; // "hi there!"
re.test("hi world!"); //  ,  
RegExp.$_; // "hi world!"

. - .


Web Proxy Viewer  |  New URL  |  Original Page