validates_format_of / nil

validates_format_of :foo, :with => /bar/, :if => Proc.new(|o| o.foo != nil }

Mason Kessinger wrote: