Two suggestions: regex = re.compile(r'^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+.?$')
(and a slightly less intuitive version that actually accomplishes the same) regex = re.compile(r'^([a-zA-Z0-9-]+\.?)+$') -- 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
