Using a RegExp to exclude an email address


#1

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 “@”?