In regards to: Find Hyperlinks in Text using Python (twitter related)
How can I extract just the url so I can put it into a list/array?
Edit
Let me clarify, I don't want to parse the URL into pieces. I want to extract the URL from the text of the string to put it into an array. Thanks!
Here's a file with a huge regex:
I call that file
urlmarker.py
and when I need it I just import it, eg.cf. http://daringfireball.net/2010/07/improved_regex_for_matching_urls and What's the cleanest way to extract URLs from a string using Python?
Regarding this:
It won't work well if you have multiple urls in the string. If the string looks like:
You may do something like this: