<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def matches(text, what):
    '''
    Check if ``what`` occurs in ``text``
    
    '''
    return text.find(what) > -1 if is_string(what) else what.match(text)