Modifier and Type | Method and Description |
---|---|
static Matcher |
matcher(Pattern pattern,
CharSequence input,
Matcher matcherOrNull)
The same as pattern.matcher() but reuses a pre-existing matcher created from
another pattern.
|
public static Matcher matcher(Pattern pattern, CharSequence input, Matcher matcherOrNull)
pattern
- the new pattern for the matcher.input
- the new input sequence for the matcher.matcherOrNull
- the provided matcher to reuse, if any.Pattern.matcher(CharSequence)