title: document.getElementById + regex
body: <p>Can <code>document.getElementById</code> be used along with a regular expression?</p>
  
  <p>For example an id on one page will be <em>Product-1</em> while on another page it will be <em>product-3</em>. (Don't aks me why but it cannot be changed apparently.) </p>
  
  <p>What I would like to do is run a <code>getElementById</code> looking for an Id of <em>Product-x</em> where <em>x</em> is either 1 or 3.</p>
  
  <p>Currently I have something like this:</p>
  
  <pre><code>var _container = document.getElementById("product-1") || document.getElementById("product-3");
  </code></pre>
  
  <p>which works - but I wonder if there is a better way of doing this?</p>
  
  <p>Thanks in advance</p>