Would something like that do the job?
r"\(([a-zA-Z]*) "
You do not need to specify what is before or after the pattern you want to match, as soon as you do not use the ^
and $
symbols that stands for the start and the end of the string.
So taking your example, the first group you use [a-zA-Z]*
is useless if you don't have any requirement on what is before your open parenthesis. Furthermore you do another mistake because in your regex you do not put a space after the second [a-zA-Z]*
group. Because you want to match every word that is between an open parenthesis and a space, you need to put the space in the regex string.
EDIT: The solution to solve the problem is this ([^ ]*\([^ ]*)
read through the comments on this to see discussion