title: Regex: Match NOT curved or square bracket
body: <p>This isn't matching. I want to match a string of characters that are not <code>]</code> or <code>)</code>.</p>
  
  <p>I used this regular expression, but it isn't matching '<code>[^\\)\\]]+</code>'</p>
  
  <p>I'm sure its simple, but, help please :)</p>
  
  <p>Working in R:</p>
  
  <pre><code>gsub('[\\(\\[]{1}[^\\)\\]]+[\\)\\]]{1}','','JOSH [IS MY NAME]')
  </code></pre>
  
  <p>Does not match anything. I want it to remove the data between the square brackets.</p>