How can I get inside parentheses value in a string?
String str= "United Arab Emirates Dirham (AED)";
I need only AED text.
i can't get idea how to split inside parentheses. Would you help highly appreciated
When you split you are using a reg-ex, therefore some chars are forbidden.
I think what you are looking for is
str = str.split("[\\(\\)]")[1];
This would split by parenthesis. It translates into split by ( or ). you use the double \\ to escape the paranthese which is a reserved character for regular expressions.
If you wanted to split by a . you would have to use split("\\.") to escape the dot as well.