def fullmatch(pattern, string, flags=0):
 return _compile(pattern, flags).fullmatch(string)

def fullmatch ( pattern , string , flags = 0 ) : return _compile ( pattern , flags ) . fullmatch ( string )
try to apply the pattern against all of the string .