Uses of Interface
java.util.regex.MatchResult
Package
Description
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
Classes for matching character sequences against patterns specified
by regular expressions.
-
Uses of MatchResult in java.util
Modifier and TypeMethodDescriptionScanner.match()
Returns the match result of the last scanning operation performed by this scanner.Modifier and TypeMethodDescriptionReturns a stream of match results that match the provided pattern string.Returns a stream of match results from this scanner. -
Uses of MatchResult in java.util.regex
Modifier and TypeClassDescriptionfinal class
An engine that performs match operations on a character sequence by interpreting aPattern
.Modifier and TypeMethodDescriptionMatcher.toMatchResult()
Returns the match state of this matcher as aMatchResult
.Modifier and TypeMethodDescriptionMatcher.results()
Returns a stream of match results for each subsequence of the input sequence that matches the pattern.Modifier and TypeMethodDescriptionMatcher.replaceAll
(Function<MatchResult, String> replacer) Replaces every subsequence of the input sequence that matches the pattern with the result of applying the given replacer function to the match result of this matcher corresponding to that subsequence.Matcher.replaceFirst
(Function<MatchResult, String> replacer) Replaces the first subsequence of the input sequence that matches the pattern with the result of applying the given replacer function to the match result of this matcher corresponding to that subsequence.