Return the string value of the regular expression:
The result of res will be:
The toString() method returns the string value of the regular expression.
The toString() method is supported in all major browsers.
None. |
Type | Description |
---|---|
String | The string value of the regular expression |
JavaScript Version: | 1.1 |
---|