What does the `Matcher.reset()` method do in Java?
The `Matcher.reset()` method resets the matcher to its initial state, but doesnâ€™t change the input string.
You're almost right! `reset()` can reset the state of the matcher, and it can also take a new input string as an argument.
Can you clarify the behavior of `reset()` when it is called with a new string?