How would I go about replacing an occurance of some string $a with $b.. but only if $a is not inside parentheses?
For example, ($a hi) $a (($a) would end as ($a hi) $b (($a)
I've tried multiple things but can't get it to behave correctly. Any help would be appreciated :)