Yes, but you're taking too much. Without grouping, regex is weaker than regular languages.
Grouping & capturing parentheses can stay. It's only the back-referrences that you need to remove.
Grouping & capturing parentheses can stay. It's only the back-referrences that you need to remove.