
    Design a content matching algorithm for a social media platform that identifies posts containing words with the letter 'z' to help track trending topics and suggest related content to users. The algorithm should scan through user-generated text and detect any word containing the letter 'z', regardless of its position within the word, to facilitate content recommendations and hashtag connections.
    

    
import re

def text_match_wordz(text):
    """
    Design a content matching algorithm for a social media platform that identifies posts containing words with the letter 'z' to help track trending topics and suggest related content to users. The algorithm should scan through user-generated text and detect any word containing the letter 'z', regardless of its position within the word, to facilitate content recommendations and hashtag connections.
    

    """
import re

def text_match_wordz(text):
    """
    Design a content matching algorithm for a social media platform that identifies posts containing words with the letter 'z' to help track trending topics and suggest related content to users. The algorithm should scan through user-generated text and detect any word containing the letter 'z', regardless of its position within the word, to facilitate content recommendations and hashtag connections.
    

    """
    patterns = '\\w*z.\\w*'
    if re.search(patterns, text):
        return True
    else:
        return False