find find for in file temp test txt if find -1 and find -1 data_1 data

1
2
3
>>> [x[x.find('(')+1:x.find(')')] for x in file("c:\\temp\\test.txt") if x.find('(')!=-1 and x.find(')')!=-1]
['data_1', 'data_2', 'data_3', 'data_4']
>>>