A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/RegExp/input below:

input ยท WebPlatform Docs

input Summary

Returns the string against which a regular expression search was performed. Read-only.

Syntax
RegExp.input
Examples

The object associated with this property is always the global RegExp object.

The value of input property is modified any time the searched string is changed.

The following example illustrates the use of the input property:

function inputDemo() {
    var s;
    var re = new RegExp("d(b+)(d)","ig");
    var str = "cdbBdbsbdbdz";
    var arr = re.exec(str);
    s = "The string used for the match was " + RegExp.input ;
    return(s);
}
Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4