0

I want to do a find/replace on the string matching (abcdefg)1 with \12, but it doesn't work. How do I do it?

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265

1 Answers1

1

Add a leading zero to the backreference:

\012

References

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
  • Thanks! Had the same issue with replacement backreferences ($1), zero helps as well when the backreference is followed by a number (e.g. $0142 will use the first reference followed by 42). – Vlad Jul 04 '13 at 05:05
  • @Vlad, good to know I'm not the only one facing this issue. Glad you found another use for it as well. – Paul Sweatte Jul 05 '13 at 16:56