Next: perform-replace, Previous: match-substitue-replacement, Up: Replacing Text Using Match Data [Index]
This function uses replace-match
to do the replacement.
the regexp to use
replacement string or function.
If a function, replace-regexp-in-string
calls REP for each match, passing
the text of the match as its sole argument. It collects the value REP
returns and passes that to replace-match
as the replacement string.
string to search; this function copies STRING and searches it for matches for REGEXP, and replaces them with REP.
passed to replace-match
passed to replace-match
passed to replace-match
If START is non-‘nil’, the search for matches starts at that index in STRING, so matches starting before that index are not changed.
It returns the modified copy.