How can you extract captured groups from a string using a regular expression in Java?
You can use `matcher.group(0)` for the entire match and `matcher.group(1)` for the first capturing group.
Thatâ€™s partially correct! `group(0)` returns the entire match, while `group(1)` corresponds to the first capturing group.
Can you explain how to retrieve all subsequent capturing groups beyond the first one, such as `group(2)`?