Created
May 5, 2015 20:53
-
-
Save jasonthomas/a3e1a6300577740ba7e2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
CERTIFICATE_RE = re.compile(r"-----BEGIN CERTIFICATE-----.+?" | |
"-----END CERTIFICATE-----", re.S) | |
paragraph = \ | |
''' | |
<p> | |
This is a paragraph. | |
It has multiple lines. | |
</p> | |
<p> | |
This is a paragraph. | |
It has multiple2 lines. | |
</p> | |
''' | |
par_re = re.compile(r'<p>.*?</p>', re.S) | |
p = par_re.finditer(paragraph) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment