Question : ".info" not accepted as valid email configuration

[email protected]
is not accepted by:
      if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $customer_eMail))

All of the email configurations below are accepted:
email@[email protected]
email@[email protected]
email@[email protected]
email@[email protected]

So it has to be the ".info" that's giving me the problem.
How should I change the code to accept the ".info"?
   

Answer : ".info" not accepted as valid email configuration

I think you need to change it to this:

 if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $customer_eMail))

Notice the last part, I think this enlarges it to 4 characters.  As you have it, it rejects any 4 character extension.
Random Solutions  
 
programming4us programming4us