Revision: 47594
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 10, 2011 23:43 by magicrebirth
Initial Code
import re myString = "This is my tweet check it out http://tinyurl.com/blah" print re.search("(?P<url>https?://[^\s]+)", myString).group("url")
Initial URL
http://stackoverflow.com/questions/839994/extracting-a-url-in-python
Initial Description
Initial Title
Extracting a URL in Python
Initial Tags
url, search
Initial Language
Python