I sometimes need to do replacements which would involve using matched parts for the output.
For example, I would like to replace
varName->doWork()
with
::doWork(varName, 42)
whatever varName actually is.
Is there a straightforward way to do this?