DEPRECATED
in JavaScript 1.5
Description
The compile() method is used to compile a regular expression during execution of a script.
This method has the form:
RegExpObject.compile(regexp,modifier)
| Parameter | Description |
|---|---|
| regexp | (required) 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 |
Browser Support
| Firefox | IE | Chrome | Opera | Safari |
|---|---|---|---|---|
