I believe you can use (.*?) instead to make it ungreedy. (Or using [^¬]* after replacement, as per my suggestion above, which is essentially the same.)
With <span> it may be more complicated, since they can be nested to no end (I assume <RemoteButton>s would not be nested).
|