Skip to content

Instantly share code, notes, and snippets.

@w3ddd
Created February 20, 2012 08:28
Show Gist options
  • Save w3ddd/1868421 to your computer and use it in GitHub Desktop.
Save w3ddd/1868421 to your computer and use it in GitHub Desktop.
python
#http://stackoverflow.com/questions/587345/python-regular-expression-matching-a-multiline-block-of-text
re.compile(r"^(.+)\n((?:\n.+)+)", re.MULTILINE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment