Not able to replace all for dollar sign
<p>can anyone advise why i encountered index out of bouns exception when running this method to replace the value by <code>$</code> sign?</p>

<p>E.g. i pass in a message <code>$$vmdomodm$$</code></p>

<pre><code>message = message.replaceAll("&amp;#36;", "$");
</code></pre>

<p>I tried to look at this forum thread but couldnt understand the content</p>

<p><a href="http://www.coderanch.com/t/383666/java/java/String-replaceAll" rel="nofollow">http://www.coderanch.com/t/383666/java/java/String-replaceAll</a></p>
