Linked: Regex groups and numerals
Dr Drang writes:
because I think I’m clever, I didn’t want to do three non-regex replacements
Don’t I know that feeling. I’ve too frequently spent fifteen minutes debugging a regular expression when I could have done a couple simpler (regex or standard) replacements.
Knowing that backreferences to subpatterns technically require two digits may save me some time in future though.