for match in re.finditer(MARKDOWN_LINK_REGEX, comment):
    upper_match = match.group(0).upper()
corrected_link = upper_match.replace(match.group(2).upper(), match.group(2))
result = result.replace(upper_match, corrected_link)
return result
Making only specific parts of a string uppercase