re.compile('패턴').fullmatch(문자열)

설명
문자열 전체가 정규식에 매칭되는지 여부 판단.