I want to specify a captured group then a literal digit in a replacement term, but the literal digit is being interpreted as part of the group number.
Given this (contrived) example:
Input text: A5
Find: (.)(.)
Replace: $16
Expected result: A6
Actual result: <blank>
Experimentation suggests that $16
is being interpreted as "group 16".
I tried using $1\6
to make the 6
literal, which gave me group 1, but a blank for the \6
- ie the result was just A
. $1\\6
gave me A\6
.
The general question is, "how do I specify group 1 then a literal number"?