RegExp.valueOf

Returns the primitive value of a RegExp object.

Method of RegExp

Syntax

valueOf()

Parameters

None

Description

The valueOf method of RegExp returns the primitive value of a RegExp object as a string data type. This value is equivalent to RegExp.toString.
This method is usually called internally by MetaScript and not explicitly in code.

Examples

See also

RegExp.toString, Object.valueOf

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.