Hi all,
I'm having problems in building a regular expression
that transforms negative numbers.
I need to put a single quote around negative numbers.
That is:
String formula = "SWITCH: case 1: method1() case -1: exit()";
should become:
"SWITCH: case 1: method1() case '-1': exit()";
Does anybody know how to obtain it with replaceAll() ?
Thanks a lot
Francesco