# File lib/formvalidator.rb, line 450 def constraint_regexp_map return nil unless Hash === @profile[:constraint_regexp_map] @profile[:constraint_regexp_map].each do |re,constraint| re = Regexp.new(re) @form.keys.select {|key| key =~ re}.each do |match| unless @form[match].to_s.empty? do_constraint(match, [constraint].flatten) end end end end