Skip to content

Instantly share code, notes, and snippets.

@rmax
Created October 22, 2009 18:55
Show Gist options
  • Save rmax/216179 to your computer and use it in GitHub Desktop.
Save rmax/216179 to your computer and use it in GitHub Desktop.
if re.search('<z5>(.+)</z5', text) as match:
value = match.groups()[0]
===
match = re.search('<z5>(.+)</z5', text)
if match:
value = match.groups()[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment