Manuel Lemos - 2006-04-02 23:26:06 - In reply to message 1 from Tim Kersten
I know that the default e-mail validation regular expression does not accept non-ASCII characters.
The problem is more complicated than it seems.
There are other less common character sequences that are not accepted by the regular expression. The problem is that the regular expression to accept all possibly valid character sequences would be extremely long and complicated.
Instead of using a complicated regular expression, the class lets you override the default regular expression so it can accept uncommon character sequences if you really need them.
So, all you need to do is change the email_regular_expression class variable with a regular expression that accepts your language characters.
Tim Kersten - 2006-04-02 23:57:45 - In reply to message 2 from Manuel Lemos
Ah ok. Good to know about being able to override it.
I know that they do get long and complex, but would it not be worth it? I wrote one before - and it did take the best part of 3 or 4 hours to do.
Still, would be nice to have one of the few email validators that actually work propery though.
Thanks for the quick reply about overriding it. ;)