an through string looking for a match, and return a corresponding
    match object instance. Return None if no position in the string matches.