Lets take:
stringi = 'xnxx xnnx xnnxn'
My regex is: (n)[^n]
I want to make my regex a little more dynamic like that:
(n)[^\1] -\1 beeing the capt. grp 1
My desired result would be that:
(n)[^\1]would be equal(n)[^n](x)[^\1]would be equal(x)[^x]
How can I not match a NOT-\1 character?