Skip to content

Instantly share code, notes, and snippets.

@dkapitan
Created May 14, 2015 20:13
Show Gist options
  • Save dkapitan/7494b226aaf64911ac8f to your computer and use it in GitHub Desktop.
Save dkapitan/7494b226aaf64911ac8f to your computer and use it in GitHub Desktop.
regex finding strings between quotes
import re
text = '"this is my string between quotes";column1;"bs";col2'
print(re.findall(r'"(.*?)"', text))
## --> ['this is my string between quotes', 'bs']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment