JavaScript RegExp compile()
RegExp compile() has been deprecated since 1999.
Avoid using it.
It may cease to work in your browser at any time.
Description
The compile() method was deprecated in JavaScript version 1.5.
The method was used to compile a regular expression during execution of a script.
Syntax
RegExpObject.compile(regexp, modifier)
Parameter Values
Parameter | Description |
---|---|
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 |