(aide mémoire) :

#emails
validates_format_of :email, :with => /([_\w\d-]+(\.[_\w\d-]+)*@[\w\d-]+(\.[\w\d-]{2,})+)/i

# urls
validates_format_of :url, :with => /^(https?:\/\/)?([^\/]+)(\/.+)?$/i
# ou
validates_format_of :url, :with => /^(ftp|https?):\/\/((?:[-a-z0-9]+\.)+[a-z]{2,})/i

Oui, ça n'a rien de spécifique à RoR, mais bon, voilà quoi.