I have tried extracting text inside quotations ""
file content:
"abc"
"ABC. XYZ"
"1 - 2 - 3"
code i've tried using regex
title = re.findall(r'\"(.+?)\"', filecontent)
print(title)
Output:
['abc']
[] # Some lines comes out like this empty
['1 - 2 - 3']
Some of the lines comes empty not sure why. is there an alternative better way to do this?