Java String: Replace string
<p>How could I replace the "String" <code>$1</code> in Java? I tried this but this don't replace it:</p>

<pre><code>System.out.println(someHTMLCodeAsString.replaceAll("$1", "REPLACED"));
</code></pre>
