import re


def is_senior(x):
    """
    If Sr or Senior is in the job title, returns True, otherwise False.
    """
    if re.search('sr\.', x, re.IGNORECASE) is not None:
        return True
    elif re.search('senior', x, re.IGNORECASE) is not None:
        return True
    elif re.search('sr\s', x, re.IGNORECASE) is not None:
        return True

    return False