Created
May 14, 2015 20:13
-
-
Save dkapitan/7494b226aaf64911ac8f to your computer and use it in GitHub Desktop.
regex finding strings between quotes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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