I am using python. The pattern is:
re.compile(r\'^(.+?)-?.*?\\(.+?\\)\')
The text like:
text1 = \'TVTP-S2(xxxx123123)\'