Compile Method In Regex Python Practice