title: How can I select an element by ID with jQuery using regex?
body: <p>I have the following input elements:</p>
  
  <pre><code>&lt;input id="AAA_RandomString_BBB" type="text" /&gt;
  &lt;input id="AAA_RandomString_BBB_Start" type="text" /&gt;
  &lt;input id="AAA_RandomString_BBB_End" type="text" /&gt;
  </code></pre>
  
  <p>AAA &amp; BBB are constants and I will always know what they are.  However RandomString will always be random.</p>
  
  <p>I want to get the value of AAA_RandomString_BBB.  I do not want the values from the input elements with ID ending in either _Start or _End.</p>
  
  <p>I tried the folowing:</p>
  
  <pre><code>$('[id^="AAA_"]')
  </code></pre>
  
  <p>But the above selects all of the input elements that have an ID starting with "AAA_"</p>
  
  <p>I need some way to select using a regex type syntax like:</p>
  
  <pre><code>$('[id^="AAA_(.+?)_BBB"]')
  </code></pre>
  
  <p>Is this possible? If not, can anyone suggest a method of selecting </p>