Here’s my quick-and-dirty Rails email regex:
/^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i
Declare the regex somewhere near the beginning of your User model, like so:
EMAIL_REGEX = /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i
A lot of code is yet to be written. Onward!
[Check this regex out on Rubular. It’s the best Rails regex tool in history!]