REGEX_String between strings in a list

Advertisements From this list: [‘AUSTRALIA\nBELMONT PARK (WA’, ‘\nR3\n1/5/4/2\n2/3/1/5\nEAGLE FARM (QLD’] I would like to reduce it to this list: [‘BELMONT PARK’, ‘EAGLE FARM’] You can see from the first list that the desired words are between ‘\n’ and ‘(‘. My attempted solution is: for i in x: result = re.search(‘\n(.*)(‘, i) print(result.group(1)) This returns the… Read More REGEX_String between strings in a list