I am using this working regex
:%s/\( to\)\([a-z]\)/\1 \2/c
to replace tothem
with to them
and tohim
with to him
.
But I do not want to look at words like together
, tone
, tonal
, etc
I tried something like this
:%s/\(\?\!together|tone|tonal\)\( to\)\([a-z]\)/\1 \2/c
but I clearly have the syntax wrong.
:h perl-patterns