Why you don't make un array with all emails that you don't need.
For example.
var email = new Array('Hotmail','Gmail','Yahoo',...,'Live');
how you already has all email list, make an array or an json file, xml, txt,...,etc
Next. Make an function handdler with regular expression.
$(function()
// $('selector').event(function(){
function handdlerMail(email){
for(var i = 0; i<email.length; i++){
if(evalEmail(current_value,/^email[i]/g){
// do something
} else { // do something }
} // end for
} // End function
function evalEmail(a,b) {
if ((b.test(a))) {
return true;
} else {
return false;
}
}
}) // end of event
}) // enf of function
I think a better way of doing this with a tree structure of weights,
ie if you could create a tree which contains, emails do not want.
then you could be evaluating your emails in logarithmic time. and at the end of walking the tree weights, you could decide whether or not it in your list of aceepted.
ie whether or not it in the tree