The replacement \\\i should output a literal backslash and then an increment per match, so matches are replaced with the texts "\1", "\2", "\3" etc. But that's not the case.
However, if I use the replacement \\ \i the output is as expected: "\ 1", "\ 2", "\ 3" etc. But I don't want another character between the backslash and the increment.
To me this looks like a bug, as there's no way to achieve what I want (in one step).
8.1.2 replacement \\\i does not execute \i
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
Look in TextPad's help in the section Reference Information | Replacement Format Strings. Parentheses are often required when using conditional replacement expressions (not a common occurrence).
Sequence number generation and regex replacement are separate mechanisms. Perhaps something goes wrong when one butts up against the other.
Sequence number generation and regex replacement are separate mechanisms. Perhaps something goes wrong when one butts up against the other.