Regular expressions to validate Email addresses

  • From: "Mark Matthews" <mark.matthews53@xxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Tue, 10 May 2011 17:58:21 +0100

Hello.

I'm probably opening up a can of worms here, since I understand that Email 
addresses are the most argued over when it comes to regular expressions. I'm 
just wondering if someone could provide me with a few samples, or point me in 
the right direction where I can find information on this?

Currently I'm leaning towards JavaScript, to pass to the match() method of the 
String object an argument to attempt to validate the syntax of a mail address.

Hope this is making sense.

Mark

Other related posts: