Validates_preence_of :name

I have a name field And it has no validation And when I update that
field with this

[email protected]#$%^&*()_+|}{":?><,./;’[]\

It gives error
transaction' /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:129:intransaction’

   Could anybody please suggest a regex to make pass this?

Thanks in advance

Hi Sijo,

I’m sorry but I don’t understand what you are trying to do. Are you
trying to insert a string representing a regexp in a field in your
database? Are you trying to validate a value that goes into a field
with what looks like a regular expression? What do you mean by 'a
regexp to make pass this? What is “this”?