Remove text between two square brackets in javascript : <p>How can I change this:</p>

<pre><code>This is a string [[remove]] this
</code></pre>

<p>To:</p>

<pre><code>This is a string this
</code></pre>

<p>I managed to figure out how to remove a string between one set of brackets but I couldn't get it right with two:</p>

<pre><code>var myString = "This is my string [remove] this"
myString.replace(/ *\[[^\]]*]/, '');
</code></pre>
