This function has two signatures:
replace( | text, | |
target, | ||
replacement) ; |
| text; |
| target; |
| replacement; |
This function replaces each substring of the text that matches the literal target string with the specified literal replacement string.
The text in which the replace will occur.
The target string to be replaced.
The string replacement.
replace( | text, | |
target, | ||
replacement, | ||
isRegExp) ; |
| text; |
| target; |
| replacement; |
| isRegExp; |
This function replaces each substring of the text that matches the target string with the specified replacement string.
text
The text in which the replace will occur.
target
The target string to be replaced.
replacement
The string replacement.
isRegExp
If true the target and replacement arguments are considered regular expressions in PERL syntax, if false they are considered literal strings.