Here is my issue. I have this:
String data = "java.awt.Color[r=168,g=228,b=160]" //example this changes.
Pattern p = Pattern.compile("(\\d+)");
Matcher m = p.matcher(data);
if(m.matches()){
....
}
However, it is not matching. Why is that? I am trying to retrieve the numbers inside brackets.
What should I try?