I want to understand, is my expression in brackets. I create such regExp -
public static final String complexValue = "([-]?[(].+[)])"
But I have fail on such input string -
String st = "(4+6)+(3)"
Is there a way to create such regExp, that string (5+x)
matches it and string (4+6)+(3)
no.