This property uses the array index notation because the property name contains punctuation characters that would cause syntactic errors if the property name were not in quotes.
This is provided as a convenience to Perl programmers who may be familiar with its syntax in this form. However, it is recommended that you use the named property form when assigning values to regular expression objects.
See also: | RegExp.leftContext |
Prev | Home | Next |
RegExp["$+"] | Up | RegExp pattern |
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. |