What is the regex expression for replace all the A char with A1, B->B1, C->C1, D->D1 and E->E1 string?
//AND(A<>B,C>D)?GREEN(E-E)
String expr ="AND(A<>B,C>D)?GREEN(E-E)";
String regex="";
expr.replaceAll(regex, "N1");
System.out.println(expr);
The result may be:
AND(A1<>B1,C1>D1)?GREEN(E1-E1)
Thank you

_has no special meaning in regex, maybe you are confusing it with SQL's replace syntax?