RegExp.prototype.compile

Re-compiles a regular expression with the new pattern and flags.

Note

This method is deprecated. It’s not recommended to use it in new code.

Syntax

compile(pattern, flags?)

Parameters