RegExp.input (Property/static)

A property of the global RegExp object.

Availability:

JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Netscape Enterprise Server - 3.0
Opera 5.0
JavaScript syntax:-RegExp.input

A default string to search when the exec() and test() methods are called with no arguments.

You can set this and then call the RegExp.exec() or RegExp.test() methods without passing a string argument value. They will then use this property of the built-in global RegExp object as their target search string.

Warnings:

See also:RegExp.exec(), RegExp.test()