title: Regex to match strings inside brackets with no spaces around
body: <p>I'm using the following regex to match strings inside brackets:</p>
  
  <pre><code>\((.*?)\)
  </code></pre>
  
  <p>But this matches this:</p>
  
  <pre><code>(word)
  </code></pre>
  
  <p>and this too:</p>
  
  <pre><code>( word )
  </code></pre>
  
  <p>I need to modify it to only match the first case: words inside brackets with no spaces around: <code>(word)</code></p>
  
  <p>Any ideas?</p>
  
  <p>Thanks in advance</p>