the
replace
of
(
haystack ,
needle ,
noodle )
replace
(
haystack ,
needle ,
noodle )
Haystack, needle, and noodle yield string
s.
The replace
function returns the string haystack with the first occurrence of the string needle replaced with the string noodle.
Needle is case-insensitive. For a case-sensitive version of this function, see csReplace
. For a regular expression-based version of this function, see regReplace
.