def my_replace(match):
    match = match.group()
    match = match[2:(- 2)]
    if ('.' in match):
        (className, attributeName) = match.split('.')
        if ('()' in attributeName):
            attributeName = attributeName[:(- 2)]
            match = ('[%s.%s()](#user-content-class-%s-method-%s)' % (className, attributeName, className.lower(), attributeName.lower()))
        else:
            match = ('[%s.%s](#user-content-class-%s-attribute-%s)' % (className, attributeName, className.lower(), attributeName.lower()))
    else:
        className = match
        match = ('[%s](#user-content-class-%s)' % (className, className.lower()))
    return match
def my_replace(match):
    match = match.group()
    match = match[2:(- 2)]
    if ('.' in match):
        (className, attributeName) = match.split('.')
        if ('()' in attributeName):
            attributeName = attributeName[:(- 2)]
            match = ('[%s.%s()](#user-content-class-%s-method-%s)' % (className, attributeName, className.lower(), attributeName.lower()))
        else:
            match = ('[%s.%s](#user-content-class-%s-attribute-%s)' % (className, attributeName, className.lower(), attributeName.lower()))
    else:
        className = match
        match = ('[%s](#user-content-class-%s)' % (className, className.lower()))
    return match