The regular expression to clone.
A new RegExp instance with the same source and flags as the provided regular expression.
This function creates a new instance of the RegExp using the source and flags of the provided regular expression.
/abc/gi;;
//=> /abc/gi
regexClone(/abc/gi);;
//=> /abc/gi
Generated using TypeDoc
Clones a regular expression.