import re input = """I really like "Game of Thrones"""pattern = r'[^"]+(?= ")'print(re.search(pattern, input).group())
Standard input is empty
I really like
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!