title: Match and capture the (capital) letters inside the square brackets
body: <p>I'm fairly new to regex and I'd like to know the pattern to match and capture the letters inside the square brackets. For example, I'd like to capture DATA from the string below. My sample code's as below:</p>
  
  <pre><code>var myString = "testing/node/234 test_TEST [1234] testing [DATA] SUMMARY,VALUES,abcd,1,0,0";
  var re = new RegExp("\[([A-Z]+)\]");
  var match = re.exec(myString);
  console.log(match[1]);
  </code></pre>
  
  <p>It's giving me a syntax error: * Unmatched ')' * at the second line.</p>