I want to match certain symbols only when they are not prefixed by specific characters. For instance, match "))))))))))" when it is not preceded by "x". Need some advices. My current expession is
(?<!x|X|:|=|\\1)([\|()\[\]])+
which does not work.
[EDIT] Rephrase my question