I am looking for something like r"[^\1]" in Python.
For example, I want to match words like "hello" in a text where every letter has been replaced by one other (ex: "a" by "z", "b" by "r", ...). "hello" can be "zcuuj", "prvva", ... I want to say to Python: "find me a word which begins with [a-z], then a letter which is not like the first, then the same two letters, then a letter wich is different of the others.
I've tried this pattern:
r"([a-z])([^\1])([^\1\2]){2}([^\1\2\3])"
(doesn't work)
This one:
r"([a-z])((?!\1))((?!\1|\2)){2}((?!\1|\2|\3])"
(doesn't work)