Hi all,

 i'm trying validate the format which doesn't consist of an empty string
in the single or double quotes.

validates_format_of :name,:with=>/^['"][ ]*['"]$/ ,:on=> :create

/^['"][ ]*['"]$/ it does validation for like the string ' ' and " " . i
need except this like the string may contain "vamsi"  or 'vamsi' or
"vamsi's" all these three are valid for me.

so how to modify the above expression is there any thing like
 :without? (ofcourse there is no)

 or can we put a not condition for the regular expression
 like  !(/^['"][ ]*['"]$/)


Thanks
VK.
-- 
Posted via http://www.ruby-forum.com/.