I want to use RegEx to match characters in a sequence that only appear one time within that word. So for example in armored armadillo the only matches would be e, i and .
My first attempt was to use lookaround to match characters such that no copy of the same character appeared before or after the match:
(.)(?<!^.*\1)(?!\1.*$)
But this appears to match no characters no matter what I do. What am I doing wrong? How can I match characters in the way that I want to?