Re: Clickable URL's again... new patch



On Wed, 13 June 21:31 Jamie Webb wrote:
| Shouldn't URLs be detected by a configurable regex, like quoted text?

The syntax for URLs is fixed by RFC 2396.  Assuming the parser is
correct, there will be no need to configure it.

| Maybe a list of regexes, with different target apps, e.g. browser,
| ftp, balsa compose message.

No, a list of REs is worse still, matching them is pretty slow.

If using REs to parse the URLs, the best thing is to have one generic
RE for matching URLs and maybe a very small number of extra patterns
for detecting special cases which are plausible URLs like
"www.some-domain.org".

I am given to wonder if a hard coded parser would be better than
RE matching (although harder to code).

Regards
Brian Stafford




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