accessing validation information from the controller

Hi, Is there any way to access the validation information in a model from the controller? For example, to change the regular expression in a validates_format_of :name, :with => %r{^([A-Za-z]((\w|\s)*)){1,40}$} dynamically, or to use that regular expression in javascript. Is this possible? Thanks, Daniel