I come from the python side and does not know much about java regex, the question is pretty self explanatory, let me add some scenario.
Assume I have an instance with a Matcher matcher
variable, and a function like this:
public String getMatch(String group) {
if (matcher.find()) {
return matcher.group(group);
} else { blah }
}
Where all regex capturing groups are named, Would calling it multiple time cause problems?