"Vivek" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I am trying to construct a regular expression using the re module that
> matches for
> 1. my hostname
> 2. absolute from the root URLs including just "/"
> 3. relative URLs.

Is your goal to learn more about regexes, or to parse URLs?  If the 
latter, my suggestion would be to look at the urlparse module; the hard 
work has already been done for you.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to