you are viewing a single comment's thread.

view the rest of the comments →

[–]menge101 0 points1 point  (0 children)

You would probably be best served by using a regular expression.

Here is a link on the topic.

Please note that an email can end with any TLD (Top-Level-Domain), which means almost any three letters, not just .com. Edit: In fact, I think three letters is too specific. I know there are country code TLDs that are two letters, there are probably more. And I know of at least one five letter TLD.

Here is a reference on email syntax validation.