How to extract some text?
clp2 at rebertia.com
Sun Mar 8 23:37:58 CET 2009
On Sun, Mar 8, 2009 at 2:18 PM, Oltmans <rolf.oltmans at gmail.com> wrote:
> I'm at a loss to figure out how to extract some text from a string.
> Here is a string:
> and I want to only retrieve the URL from above i.e I only want this
> http://youtube.example.com/login.aspx from the above string. Any ideas/
> help is highly appreciated.
Learn about the methods of the string class (str):
You'll probably be most interested in .split()
I have a blog:
More information about the Python-list