Re: How to extract some text?

2009-03-09 Thread odeits
On Mar 8, 3:50 pm, Oltmans wrote: > On Mar 9, 3:37 am, Chris Rebert wrote: > > > Learn about the methods of the string class > > (str):http://docs.python.org/library/stdtypes.html#id4 > > > You'll probably be most interested in .split() > > OK, thanks I got it. I was trying to use Regex but .spl

Re: How to extract some text?

2009-03-08 Thread Oltmans
On Mar 9, 3:37 am, Chris Rebert wrote: > Learn about the methods of the string class > (str):http://docs.python.org/library/stdtypes.html#id4 > > You'll probably be most interested in .split() OK, thanks I got it. I was trying to use Regex but .split() just worked like a charm. Thank you ;) > >

Re: How to extract some text?

2009-03-08 Thread Tim Pinkawa
On Sun, Mar 8, 2009 at 5:18 PM, Oltmans wrote: > I'm at a loss to figure out how to extract some text from a string. > Here is a string: > > setTimeout("location.href='http://youtube.example.com/login.aspx'", > 5000); > > and I want to only retrieve

Re: How to extract some text?

2009-03-08 Thread Chris Rebert
On Sun, Mar 8, 2009 at 2:18 PM, Oltmans wrote: > I'm at a loss to figure out how to extract some text from a string. > Here is a string: > > setTimeout("location.href='http://youtube.example.com/login.aspx'", > 5000); > > and I want to only retrieve

How to extract some text?

2009-03-08 Thread Oltmans
I'm at a loss to figure out how to extract some text from a string. Here is a string: setTimeout("location.href='http://youtube.example.com/login.aspx'", 5000); and I want to only retrieve the URL from above i.e I only want this http://youtube.example.com/login.aspx f