RegExp.toString() (Method)

Return a string primitive version of a RegExp object.

Availability:

ECMAScript edition - 3
JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Opera - 5.0
Property/method value type:String primitive
JavaScript syntax:-myRegExp.toString()

This method returns a String primitive representation of the value of the present RegExp value.

See also:Cast operator, RegExp.prototype, toString()

Cross-references:

ECMA 262 edition 3 - section - 15.10.6.4