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/;