I want to change the string "S/" to "S/." only whole word , I tried with Pattern.compile and Matcher.quoteReplacement. I didn't find the solution.
public static void main(String[] args) {
    String cadena = "Moneda Actual : S/";
    cadena = cadena.replaceAll("\\bS/\\b", "S/.");
    System.out.println(cadena);
}
This code print :
Moneda Actual : S/
I want to print :
Moneda Actual : S/.
So if original text is "Moneda Actual : S/." , the algorithm mustn't replace to "S/.."
 
    