title: Regular Expression match in javascript
body: <p>I have the string <code>SUM([A2:A10],[B2:B10],[C2:C10],[D2:D10])</code> and I need to get the elements <code>[A2:A10],[B2:B10],[C2:C10],[D2:D10]</code> in an array, so I used <code>match()</code> in js. The code snippet is</p>
  
  <pre><code>var formula = "SUM([A2:A10],[B2:B10],[C2:C10],[D2:D10])";
  var reg = /\[(a-zA-Z0-9)+\]/;
  matches = formula.match(reg);
  </code></pre>
  
  <p>But I am not getting the match. I hope the regular expression is wrong. I am very poor in building regular expression. What will be the correct regular expression?</p>