fork download
  1. import re
  2.  
  3. regex = r'([^"]*)"[^"]*"(.*$)'
  4. test_str = "I really like \"Game of Thrones\" blah blah"
  5. matches = re.search(regex, test_str)
  6.  
  7. if matches:
  8. print(matches.group(1))
  9. print(matches.group(2))
  10.  
Success #stdin #stdout 0.02s 9392KB
stdin
Standard input is empty
stdout
I really like 
 blah blah