Array.input (Property)

A special property provided only when the array results from a string match.

Availability:

JavaScript - 1.2
JScript - 5.5
Internet Explorer - 5.5
Netscape - 4.0
Property/method value type:String primitive
JavaScript syntax:-myArray.input

When the String.match() method is used, it returns an array as a result. If the match used a pattern that made only a single match (i.e. the g attribute was not used) then the array returned will have this additional input property.

The input property will contain a copy of the original string that was searched.

See also:Array.index, RegExp.exec(), String.match()