Forum: Ruby on Rails Using a RegExp to exclude an email address

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bcf82614395ca5033438c7b6047da721?d=identicon&s=25 Jasbur (Guest)
on 2006-06-06 19:50
How would I use a regular expression to eclude an email address? I'm
using validates_format_of       :username,
                          :with =>
                          :message => "Your username cannot be an email
address."

What is the expression to use after "with: =>" to exclude an "@"?
This topic is locked and can not be replied to.