Skip to content

Instantly share code, notes, and snippets.

@luckydev
Created August 2, 2010 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luckydev/504228 to your computer and use it in GitHub Desktop.
Save luckydev/504228 to your computer and use it in GitHub Desktop.
validates_format_of :email,:with => /(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,3})/
# reg exp for email validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment