Tiffany B. Brown

A web log about web development and internet culture with frequent detours into other stuff.
Links for November 8, 2006
Links for November 10, 2006

A pattern for matching e-mail addresses

I recently published a better pattern for matching e-mail addresses than this one.

A regular expression pattern for use in JavaScript, PHP, or whatever language you use that supports them.

^[-a-z0-9._+]+@[-a-z0-9._]+\\.[-a-z0-9._]{2,6}$

The details

Improvements? Questions? Share with us in the comments.

More information

Share this entry:
  • TwitThis
  • Digg
  • Technorati
  • del.icio.us
  • Ma.gnolia
  • Mixx
  • NewsVine
  • Reddit
  • StumbleUpon
  • TailRank
  • Global Grind
  • YahooMyWeb
  • Google
  • Live
  • LinkedIn
  • MySpace
previous post: Links for November 8, 2006
next post: Links for November 10, 2006