in reply to Re: Interpretation of my output
in thread Interpretation of my output

(A(((BC)D)(EF))) (A(((BC)D)(EF))) (A((BD)(EF))) (A((BD)(EF))) (A(B(EF))) (A(B(EF))) (A(BE)) (A(BE)) (AB) (AB) A
Could be the progression you require, otherwise as stated above you end up with (ABE).

If that is what you require, then this could be what you need, if not, it's a starting point ;)

s/\(([^)])[^)]\)/$1/