This function has two signatures:
-
oxy_replace
(
text
,
target
,
replacement
)
This function replaces each substring of the text that matches the literal target string
with the specified literal replacement string.
- text
- The text in which the replace will occur.
- target
- The target string to be replaced.
- replacement
- The string replacement.
-
oxy_replace
(
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.