in reply to •Re: In substituation regex, how to differentiate \1 from surrounding text
in thread In substituation regex, how to differentiate \1 from surrounding text

And on the pattern side, you can put it in non-capturing parentheses.

The PerlMonk tr/// Advocate
  • Comment on Re^2: In substituation regex, how to differentiate \1 from surrounding text