JavaScript RegExp toString()
JavaScript RegExp toString()
The toString() method is used to return the string value of the regular expression.
Syntax:-
Its syntax is:- RegExpObject.toString()
Return:-
Its return is:- a string containing the regular expression