Return the first regex match object of pattern in string.
string (str) – Input string.
pattern (str) – Regular-expression pattern.
First match object, or None when no match.
re.Match or None