How can I get inside parentheses value in a string?
String str= "United Arab Emirates Dirham (AED)";
I need only AED text.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Compiles and prints “AED”. Even works for multiple parenthesis:
The regex means:
\\(: character((: start match group[: one of these characters^: not the following character): with the previous^, this means “every character except)“+: one of more of the stuff from the[]set): stop match group\\): literal closing paranthesis