Given string s = '(A /something_1)(B /something_2)(C /something_3),/,(D /something_4)(D /something_5)'
I would like to get this output: (C /something_3),/,(D /something_4)(D /something_5)
I keep matching the whole string s, instead of getting above substring.
I am using re.search(r'(\(C.*\)),/,(\(D.*\))+')
Any help is appreciated...