# group 1 must be the prefix, group 2 the IP, group 3 the suffix
ipmatch = r"([0-9a-f.:]+)"
accesslog = re.compile(r"^(\S+ )"+ipmatch+r"( .*)$")
# group 1 must be the prefix, group 2 the IP, group 3 the suffix
ipmatch = r"([0-9a-f.:]+)"
accesslog = re.compile(r"^(\S+ )"+ipmatch+r"( .*)$")