Next: , Previous: , Up: Replacing Text Using Match Data   [Index]


8.4.4.2 match-substitue-replacement

Function: match-substitute-replacement replacement &optional fixedcase literal string subexp

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’.