JavaScript source Property
JavaScript source Property
The source property is used to return the text of the RegExp pattern.
Syntax:-
Its syntax is:- RegExpObject.source
Return:-
Its return is:- a string containing the text of the RegRxP pattern