Skip to content

Instantly share code, notes, and snippets.

@jasonthomas
Created May 5, 2015 20:53
Show Gist options
  • Save jasonthomas/a3e1a6300577740ba7e2 to your computer and use it in GitHub Desktop.
Save jasonthomas/a3e1a6300577740ba7e2 to your computer and use it in GitHub Desktop.
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