I want to match input fields that match the following pattern:
a_profile_contact_attributes_addresses_attributes_0_address b_store_contact_attributes_addresses_attributes_3_address somethingelse_contact_attributes_addresses_attributes_44_address
In other words, I want to use the following regex:
/contact_attributes_addresses_attributes_\d+_address/ Using jQuery, I tried the following but it returns an empty result set:
$('input[id*="contact_attributes_addresses_attributes_' + /\d+/ + '_address"]') What might I be doing wrong?