title: Javascript REGEX matching two brackets [[something]]
body: <p>trying to match anything width and <strong>including</strong> two brackets e.g. <code>[[match this]]</code> so I can replace without brackets.</p>
  
  <p>here is what I have as far <code>var regex = /([\[\|\]])\w+/g;</code></p>
  
  <p>However this matches the above like this <code>[match</code></p>
  
  <p>Any help would be appreciated</p>