> The complete regex would look like this: > > re.compile(r'^([\w!#$%&\'*+\-/=?^`{|}~]+(\.[\w!#$%&\'*+\-/=?^`{|}~]+)*' > r'|"[^(\|")]*")@[\w-]+(\.[\w-]+)+$') That is possibly the ugliest sequence of characters I have ever seen. Martin