Have this string and need to scroll through it by taking only the values that are within ()
.
The string is:
String estados = “(1, ‘AC', ‘Acre’), (2,’AL', ‘Alagoas’), (3, AM, ‘Amazonas’)… “
I've mounted the following regex :
Pattern pattern = pattern.compile(“(([^>]*))”);
Matcher matcher = pattern.matcher(estados);
while(matcher.find()){
String aux = matcher.group();
…
}
Only it is returning matcher.group
always with empty value.