This is an alternative way to deliver a string version of a regular expression object. In this case, it is formatted as a RegExp literal and can then be used in an eval() function to assign another regular expression.
Prev | Home | Next |
RegExp.test() | Up | RegExp.toString() |
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. |