Regex to remove spaces within square brackets (Java) : <p>I need a regex to remove spaces within square brackets. For example: </p>

<ul>
<li>add eax [ebp + 8]</li>
<li>add eax [esp + 12]</li>
</ul>

<p>will become </p>

<ul>
<li>add eax [ebp+8]</li>
<li>add eax [esp+12]</li>
</ul>

<p>Thanks for your assistance.</p>
