the
regReplace
of
(
haystack ,
needle ,
noodle )
regReplace
(
haystack ,
needle ,
noodle )
Haystack yields any string
. Needle yields a string
describing a regular expression. Noodle yields a string
describing a replacement expression.
The regReplace
function returns the string haystack with the first occurrence of the regular expression needle replaced with the replacement expression noodle.
Needle is a regular expression. Noodle is more-or-less a literal string; however, backslashes or dollar signs in noodle will refer to groups in the found expression rather than literal backslashes or dollar signs. For a literal version of this function, see replace
or csReplace
.