I have code that does't like dollar sign that must be vissible in replacement.
String s1= "this is amount <AMOUNT> you must pay";
s1.replaceAll("<AMOUNT>", "$2.60");
System.out.print(s1);
I have exception java.lang.IllegalArgumentException: Illegal group reference
I expet to get string "this is amount $2.60 you must pay"
How to change my code to have required result?