@classmethod
def replaceURL(cls, match):
    """Replace hyperlinks with clickable <a> tags
        """
    url = match.groups()[0]
    linktext = cls.abbreviateUrl(url)
    end = ''
    if url.endswith('&gt;'):
        url = url[:-len('&gt;')]
        linktext = linktext[:-len('&gt;')]
        end = '&gt;'
    elif url.endswith('.') or url.endswith('?') or url.endswith('!'):
        end = url[-1]
        url = url[:-1]
        linktext = linktext[:-1]
    return '<a href="%s" rel="nofollow">%s</a>%s' % (url, linktext, end)
