Regex.Replace: How to use $groups followed by numbers [duplicate] January 5, 2024 by Tarik You need to use the alternate syntax: Regex::Replace(text, "(6)", "${1}78");