import re


def check_for_str(text, pattern):
    """ Checks for pattern in text

    :param text: string to check for pattern in
    :param pattern: pattern to check for
    :return: boolean confirming or denying the presence of pattern in string
    """
    has_url = False
    urls = re.findall(pattern, text)
    if len(urls) != 0:
        has_url = True
    return has_url