def classLink(className, string_):
    """return copy of string with className replaced by HTML link to it."""
    classN = re.sub(r'((\w+\.)+(\w+))', r'\3', className)
    result = string_.replace(className, classN)
    return re.sub(r'((\w+\.)+(\w+))', r'<a href="\1.html">\3</a>', result)
return copy of string with className replaced by HTML link to it.
recipes/Python/502222_Creating_javclass/recipe-502222.py