title: Remove brackets with regular expression in C#
body: <p>I want to remove square brackets from an SQL string, but only where there is no whitespace inside them.</p>
  
  <p>E.g. "SELECT [intId], [The Description]" should return "SELECT intId, [The Description]".</p>
  
  <p>I can get the square brackets without spaces inside with the regular expression:</p>
  
  <pre><code>\[[^\s]*\]
  </code></pre>
  
  <p>How can the square brackets from these matches be removed in the original string?</p>