import retext = "[(u'apple',), (u'banana',)]"print(re.findall(r"'([^']*)'", text))
Standard input is empty
['apple', 'banana']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!