Skip to content

Instantly share code, notes, and snippets.

@drone29a
Created June 21, 2010 17:34
Show Gist options
  • Save drone29a/447190 to your computer and use it in GitHub Desktop.
Save drone29a/447190 to your computer and use it in GitHub Desktop.
import re
test = '<a href="http://m.twitter.com/" rel="nofollow">mobile web</a>'
p = re.compile("\<.*[a|A].*\>(.*)\<.*/[a|A].*\>")
m = p.match(test)
print m.groups()[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment