Created
December 11, 2016 12:29
-
-
Save thoolihan/9c96cb17efc59b3ea16a031b55fb03da to your computer and use it in GitHub Desktop.
searching for quoted text
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 | |
p = re.compile('\"([^\"]+)\"') | |
str = 'I said "Hello There." She replied "hi"' | |
matches = p.findall(str) | |
for m in matches: | |
print('found: {0}'.format(m)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment