title: Javascript get query string values using non-capturing group
body: <p>Given this query string:</p>
  
  <pre><code>?cgan=1&amp;product_cats=mens-jeans,shirts&amp;product_tags=fall,classic-style&amp;attr_color=charcoal,brown&amp;attr_size=large,x-small&amp;cnep=0
  </code></pre>
  
  <p>How can I extract the values from only these param types <code>'product_cat, product_tag, attr_color, attr_size'</code> returning only <code>'mens-jeans,shirts,fall,classic-style,charcoal,brown,large,x-small</code>?</p>
  
  <p>I tried using a non-capturing group for the param types and capturing group for just the values, but its returning both.</p>
  
  <pre><code>(?:product_cats=|product_tags=|attr\w+=)(\w|,|-)+
  </code></pre>