Q:

Remove part of 'one word' string Python

I have this list with part of speech tags and their specifics: ['VNW(pers,pron,nomin,red,2v,ev)', 'WW(pv,tgw,met-t)', 'LID(bep,stan,rest)'].  As you can see there are no spaces between the characters, so it can be seen as one word.  
Now I need a new list with only the part of speech tags, like this ['VNW', 'WW', 'LID'].  
I tried removing the brackets and everything in them with a regex like this pattern = re.compile(r'(.*)'). 
I also tried to match only the capital letters, but I can't get it right.  Suggestions? 

A:

Regular expression is not need for this case.  Split by (; then get the first part only. 
>>> 'VNW(pers,pron,nomin,red,2v,ev)'.split('(')
['VNW', 'pers,pron,nomin,red,2v,ev)']
>>> 'VNW(pers,pron,nomin,red,2v,ev)'.split('(')[0]
'VNW'

>>> xs = ['VNW(pers,pron,nomin,red,2v,ev)', 'WW(pv,tgw,met-t)',
          'LID(bep,stan,rest)']
>>> [x.split('(')[0] for x in xs]
['VNW', 'WW', 'LID']

