My test cases didn't consider a '-' at either end of each domainlabel. This should do it: regex = re.compile(r'^(([a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9])\.?)+$', re.IGNORECASE)
-- hostname permitted containing consecutive dots https://bugs.launchpad.net/bugs/105890 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
