[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grammar for URLs



>    Does someone have a grammar for valdating a URL.

RFC 1738 is your starting point:
http://www.faqs.org/rfcs/rfc1738.html

Parsing a URL with a regular expression, as Pieter suggested, is not a
trivial task.
Of course it depends on what you want. If all you have to do is extract
the domain name for example, regular expressions are fine.

-- 
Martijn Vermaat

Student Computer Science                            www.cs.vu.nl/~mvermaat
Vrije Universiteit, Amsterdam                            mvermaat@cs.vu.nl