RegExp compile() was deprecated in JavScript version 1.5.
Avoid using it. It may cease to work in any browser at any time.
Definition and Usage
The compile() method is used to compile a regular expression during execution of a script.
The compile() method can also be used to change and recompile a regular expression.
|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|