topic description
A string in which multiple repeated characters are removed, but do not know the relevant regular method
related codes
String ss="SUM(TA0047/(TA0012+TA0023+SUM(TA0034+TA0045)))";
what result do you expect? What is the error message actually seen?
the result is TA0047/ (TA0012+TA0023+TA0034+TA0045)
problem description
removing api replace or replaceAll from SUM () java can only remove SUM, but the position of parentheses is not fixed. I don"t know what to do so far. After parsing into char, the location of the tag is queried in a loop, but the train of thought is not clear. Ask for help