Re: regex for url paramter

2004-12-07 Thread Paul McGuire
"Robert Brewer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Andreas Volz wrote: > I try to extract a http target from a URL that is given as parameter. > urlparse couldn't really help me. I tried it like this > > url="http://www.example.com/example.html?url=http://www.exampl > e.org

RE: regex for url paramter

2004-12-07 Thread Robert Brewer
Andreas Volz wrote: > I try to extract a http target from a URL that is given as parameter. > urlparse couldn't really help me. I tried it like this > > url="http://www.example.com/example.html?url=http://www.exampl > e.org/exa > mple.html" > > p = re.compile( '.*url=') > url = p.sub( '', url) >