[thelist] Email Validator 2

Shoshannah Forbes xslf at xslf.com
Thu Dec 6 02:33:38 CST 2001


> 
> In the above expression, you could make the dot optional by following it
> with a question mark like this:
> 
> \.?[A-Za-z0-9]+$/
> 
> The question mark there means ONLY a single dot is allowed, but the dot is
> optional. Change the ? to an asterisk (\.*[A-Za-z0-9]+$) and it becomes
> "ANY number of dots are allowed, but they are optional". Thus the ? will
> prevent the validation from passing whatever at whatever..com.


How would it deal with my home address, which has two dots?
xslf at netvision.net.il ? Or another email I have at xslf at nana.co.il ? Both
are valid emails, and I had both spit out at times as non-valid.
On the other hand, when I have to enter an address and I don't want to, I
use example at example.com --> since I know example.com is reserved, I know
that know one ever will get any email sent there, thus I am not spamming
some third party.

Regards,
Shoshannah Forbes







More information about the thelist mailing list