Validating Email Addresses, URLs and IP Formats with Regex in Ruby on Rails
Submitted by admin on Thu, 09/28/2006 - 00:00This is all too common of faq in rails help channels and on mailing lists so it mine as well have some examples here too! Stick this in your user.rb model: