title: How can I select an element by ID with Prototype using regex?
body: <p>My Question is very very similar to this <a href="https://stackoverflow.com/questions/13541898/how-can-i-select-an-element-by-id-with-jquery-using-regex">question.</a>  Which asks:</p>
  
  <blockquote>
    <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>
  </blockquote>
  
  <p>Now the anwser for JQuery was the following:</p>
  
  <blockquote>
    <p>You can combine both selectors in a multiple attribute selector.</p>
  
  <pre><code>​$("[id^=AAA_][id$=_BBB]")
  </code></pre>
  </blockquote>
  
  <p>So is there a way to do the above but using Prototype v1.7.2? </p>