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() |
Prev | Home | Next |
Array.index | Up | Array.join() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |