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

Thank you for the workaround but why such a behavior?
  • Comment on Re^2: Substitution is replacing one character set out of two

Replies are listed 'Best First'.
Re^3: Substitution is replacing one character set out of two
by hippo (Archbishop) on Apr 01, 2022 at 12:10 UTC

    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.


    🦛

      Crystal clear, thank you!