Need to replace numbers between [...] with Javascript or jQuery : <p>Inside a string: I need to replace the number between <code>[ ]</code> by another number with Javascript or jQuery.</p>

<p>What is the best way to proceed ?</p>

<p>Eamples</p>

<pre><code>"[12345].Checked" &gt; "[1].Checked"
"[123].RequestID" &gt; "[21].RequestID"
</code></pre>

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