in reply to Re^2: Substitution is replacing one character set out of two
in thread Substitution is replacing one character set out of two

Without the lookahead your search and replace consumes the second pipe, so subsequent attempts to match will start beyond it. I would not call it a workaround - it's a valid solution to the task.


🦛

  • Comment on Re^3: Substitution is replacing one character set out of two

Replies are listed 'Best First'.
Re^4: Substitution is replacing one character set out of two
by sroux (Sexton) on Apr 01, 2022 at 12:33 UTC
    Crystal clear, thank you!