title: Find elements with jquery selector and regex
body: <p>I've got several input boxes like so:</p>
  
  <pre><code>&lt;input type="checkbox" name="checkbox_item[500]" /&gt;
  &lt;input type="checkbox" name="checkbox_item[10]" /&gt;
  &lt;input type="checkbox" name="checkbox_item[2]" /&gt;
  &lt;input type="checkbox" name="checkbox_item[1]" /&gt;
  &lt;input type="checkbox" name="checkbox_item[]" /&gt;
  </code></pre>
  
  <p>So I'm using the following regex pattern <code>checkbox_item\[\d+\]</code> which works nicely in my regex tester but I cannot get it to work with Jquery.  This is my Jquery code:</p>
  
  <pre><code>console.log($("input:regex(name, /checkbox_item\[\d+\]/)").length);
  </code></pre>
  
  <p>I was expecting 4 but instead got 28!</p>
  
  <p>Can somebody shed any light on this?</p>
  
  <p>Thanks</p>