I have the following code...
private static final String REGEX_TEAMSPLIT =
"([0-9]*)\\s-\\s([A-Z,a-z][a-z,\\s,A-Z]*)";
...
String reg = teamNames.get(0).html();
//reg == '62401 - Breakers'
teamNumber = reg.replace(REGEX_TEAMSPLIT, "$1");
//teamNumber == '62401 - Breakers'
Now I was assuming this would leave me with only the first group per what I read online. But as you can see this is not the case. Can someone tell what I am missing?