
    Design a content formatting function for a social media platform that removes all lowercase text segments from user-generated content to standardize post visibility in the recommendation system. The function should process any given post or comment while preserving uppercase characters, numbers, and special characters in their original positions. The resulting formatted content should only contain uppercase letters and non-letter characters to ensure consistent content categorization across the platform.
    

    
import re

def remove_lowercase(str1):
    """
    Design a content formatting function for a social media platform that removes all lowercase text segments from user-generated content to standardize post visibility in the recommendation system. The function should process any given post or comment while preserving uppercase characters, numbers, and special characters in their original positions. The resulting formatted content should only contain uppercase letters and non-letter characters to ensure consistent content categorization across the platform.
    

    """
import re

def remove_lowercase(str1):
    """
    Design a content formatting function for a social media platform that removes all lowercase text segments from user-generated content to standardize post visibility in the recommendation system. The function should process any given post or comment while preserving uppercase characters, numbers, and special characters in their original positions. The resulting formatted content should only contain uppercase letters and non-letter characters to ensure consistent content categorization across the platform.
    

    """
    return re.sub('[a-z]', '', str1)