Lets say I want to replace print(x)
with print(wrapper(x))
. I can match
print($Argument$)
and replace it with
print(wrapper($Argument$))
However, if I already have a call to print(wrapper(x))
, I don't want to replace that with print(wrapper(wrapper(x)))
. How can I avoid that? In other words, how do I say "do the replacement, unless the arguments match some pattern"?