Evaluate expression in parentheses, in String : <p>In Java, if I have a string like <code>"(3+5)x + x^(6/2)"</code>, how could I replace all expressions in parentheses with their evaluations, to get the string <code>"8x + x^3"</code>?</p>
