RegExp compile() has been deprecated since 1999.
Avoid using it.
It may cease to work in your browser at any time.
Definition and Usage
The method was used to compile a regular expression during execution of a script.
|regexp||A regular expression|
|modifier||Specifies the type of matching. "g" for a global match, "i" for a case-insensitive match and "gi" for a global, case-insensitive match|