Resets the Matcher, rewinding input and discarding any match information. @return the Matcher itself, for chained method calls
()
| 105 | * @return the {@code Matcher} itself, for chained method calls |
| 106 | */ |
| 107 | public Matcher reset() { |
| 108 | inputLength = matcherInput.length(); |
| 109 | appendPos = 0; |
| 110 | hasMatch = false; |
| 111 | hasGroups = false; |
| 112 | return this; |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * Resets the {@code Matcher} and changes the input. |