also, I don't get why you're using "6" and not "10" for the max tld length (you use 10 in the url regexp). And I think you should not match \. in the tld part

what about internationalized email ? I'm ok with keeping this for a later patch though