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

Re: Suggestion for wml::fmt::url


On Fri, Dec 01, 2000 at 09:59:57PM +0100, Denis Barbier wrote:
> > 2. I don't know, if othe people would like this, but it seems useful
> >    (at least to me :-) to linkify e-mail addresses like
> >    <abe@cs.uni-sb.de> or &lt;abe@cs.uni-sb.de&gt;, too. So I added the
> >    following replacements to the above:
> > 
> > [[s|&lt;(\S+?@\S+?)&gt;|&lt;<a href="mailto:$1" %attributes>$1</a>&gt;|g]]
> > [[s|<(\S+?@\S+?)>|&lt;<a href="mailto:$1" %attributes>$1</a>&gt;|g]]
> > [...]
> Sounds good, i will certainly commit this change soon, thanks.

I noticed today that those regexps match message ids, too, because
they have similar--if not the same syntax. Has anyone an idea how to
distinguish between email addresses and message ids using regexps?

(The next step would be to build regexps for usenet message ids, so
 that they link to the appropriate message on the news server... ;-)

But I think that this is only a problem, if the <URL> tag is used in
some kind of mailing list archive to linkify all those URLs in the

		Regards, Axel
Axel Beckert - abe@cs.uni-sb.de - http://abe.home.pages.de/
Student of Computer Science, University of Saarland (Germany)
Artificial Intelligence Laboratory (AI Lab), Prof. Dr. W. Wahlster;
WWW-Administrator IBFI Schloss Dagstuhl; Students Representative
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com