def match(pattern, string, flags=<NUM_LIT:0>):
return _compile(pattern, flags).match(string)<EOL>
Try to apply the pattern at the start of the string, returning
    a match object, or None if no match was found.