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"?
Pepe