I'd like to extract values between parenthesis. Let's say I have, the following code:
string = "Will Ferrell (Nick Halsey), Rebecca Hall (Samantha), Michael Pena (Frank Garcia)"
pat = re.findall(r'\((.*)\)', string)
It returns:
[u'Nick Halsey), Rebecca Hall (Samantha), Michael Pena (Frank Garcia']
But, I'd like to have:
[u'Nick Halsey, Samantha, Frank Garcia']
Any idea on how to do so?