RegEx - Find and Replace with Variables

Is this different to what you asked here, where I highlighted the missing usage?

A Find/Replace "Step" for Custom Actions (with RegEx)?