the
regReplaceAll
of
(
haystack ,
needle ,
noodle )
regReplaceAll
(
haystack ,
needle ,
noodle )
Haystack yields any string
. Needle yields a string
describing a regular expression. Noodle yields a string
describing a replacement expression.
The regReplaceAll
function returns the string haystack with every 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 replaceAll
or csReplaceAll
.