[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Grammar for URLs
Maybe a should tell you that regexps would not be
enough, because I'm analising log files from a
usability tool, and they have certain complexity. They
include URLs, integers, dates, strings, quoted
strings, lists and tons of events information.
César
--- Martijn Vermaat <mvermaat@cs.vu.nl> wrote:
> > 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
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861