Next: replace-regexp-in-string, Previous: replace-match, Up: Replacing Text Using Match Data [Index]
This function returns the text that would be inserted into the buffer by ‘replace-match’, but without modifying the buffer.
It is useful if you want to present the user with actual replacement result, with constructs like ‘’ or ‘\&’ substituted with matched groups.
Arguments REPLACEMENT and optional FIXEDCASE, LITERAL, STRING and SUBEXP have the same meaning as for ‘replace-match’.