>I am currently in the process of making some fixes and
>enhancements to maskededit.py, and am trying to fix this issue
>while I'm at it.
[...]
In fact, your task is essentially impossible. Virtually every ASCII
character is allowed inside an RFC-822 e-mail address, with
appropriate quoting.
>...
>Is this acceptable and/or sufficient?
No, this doesn't do it. Jeffery Friedl's excellent book on
"Mastering Regular Expressions" contains the One True regular
expression that accurately matches all legal RFC-822 compliant
e-mail addresses. It 6,598 characters long. I kid you not.
Wow.
Rats.
Hmmm.... I believe you, but I don't want to drop the autoformat
entirely, as I think it is a nice thing, and I know that it
covers a large portion if not a majority of "normal" email
addresses.
So, I'll drop the "sufficient" part, assuming this implies
"full RFC-822" compliance, and substitute "reasonable" instead...
Given this criteria, would you add/change anything else?
(Remember, this is for form-filling, where the user is typing,
and you're trying to give them feedback on obvious mistakes.)