Here is my script:
Code: Select all
StringLeft := "leftleftleftleftleftleftleftleftleftleft"
Output .= RegExReplace(StringLeft, "(left(?:(?!left).)*)left((?:(?!left).)*)", "\1right\2")
MsgBox % Output
Clipboard := Output
Instead, I get \1right\2\1right\2\1right\2\1right\2\1right\2. I've put up this RegEx on RegEx 101 at https regex101.com /r/z0bH8g/1/. Broken Link for safety