%= render :partial => 'custom_fields/formats/regexp', :locals => {:f => f, :custom_field => custom_field} %>
<%= f.check_box :text_formatting, {:label => :setting_text_formatting, :data => {:disables => '#custom_field_url_pattern'}}, 'full', '' %>
<%= f.text_field(:default_value) %>
<%= f.text_field :url_pattern, :size => 50, :label => :label_link_values_to %>