Parameter
|
Description
|
regexp
|
A RegExp object. The match is replaced by the return value of parameter #2.
|
substr
|
A string that is to be replaced by a new substr.
|
newSubStr
|
The string that replaces the substring received from parameter #1
|
Function
|
A function to be created is invoked to create the new substring.
|
Flags
|
A string containing any combination of the RegExp flags: g – global match over multiple lines. This parameter is only used if the first parameter is a string.
|