you are here: codestackercodes [RSS]email regex

email regex

validates_format_of :email, 
:with => /^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/, 
:message => "is invalid" 

Comments