in reply to How do I find $a only where it's not followed by $b and then replace it with $c?

s/$a[^$b]/$c/;

Originally posted as a Categorized Answer.

  • Comment on Re: How do I find $a only where it's not followed by $b and then replace it with $c?
  • Download Code