##
##  wml::fmt::url - Recognize Uniform Resource Locator
##  Copyright (c) 1997-2001 Ralf S. Engelschall, All Rights Reserved. 
##

<define-tag url endtag=required>
{:\
    [[s|\b(http://\S+)|<a href="$1">$1</a>|g]]\
    [[s|\b(ftp://\S+)|<a href="$1">$1</a>|g]]\
    [[s|\b(gopher://\S+)|<a href="$1">$1</a>|g]]\
    [[s|\b(telnet:\S+)|<a href="$1">$1</a>|g]]\
    [[s|\b(news:\S+)|<a href="$1">$1</a>|g]]\
    [[s|\b(mailto:\S+)|<a href="$1">$1</a>|g]]\
    %body\
:}\
</define-tag>

##EOF##
