Methods
- ✓public java.util.regex.Matcher appendReplacement(java.lang.StringBuffer arg0, java.lang.String arg1)
- ✓public java.util.regex.Matcher appendReplacement(java.lang.StringBuilder arg0, java.lang.String arg1)
- ✓public java.lang.StringBuffer appendTail(java.lang.StringBuffer arg0)
- ✓public java.lang.StringBuilder appendTail(java.lang.StringBuilder arg0)
- ✓public int end()
- ✓public int end(int arg0)
- ✓public int end(java.lang.String arg0)
- ✓public boolean find()
- ✓public boolean find(int arg0)
- ✗public java.lang.String group()Comparing jdk-20-ga and jdk-21+35
group
Returns the input subsequence matched by the previous match.For a matcher m with input sequence s, the expressions m.
group()and s.substring(m.start(),m.end())are equivalent.Note that some patterns, for example
a*, match the empty string. This method will return the empty string when the pattern successfully matches the empty string in the input.- Specified by:
groupin interfaceMatchResult- Returns:
- The (possibly empty) subsequence matched by the previous match, in string form or
nullif a matcher with a previous match has changed itsPattern, but no new match has yet been attempted - Throws:
IllegalStateException- If no match has yet been attempted, or if the previous match operation failed
- ✗public java.lang.String group(int arg0)Comparing jdk-20-ga and jdk-21+35
group
Returns the input subsequence captured by the given group during the previous match operation.For a matcher m, input sequence s, and group index g, the expressions m.
group(g)and s.substring(m.start(g),m.end(g))are equivalent.Capturing groups are indexed from left to right, starting at one. Group zero denotes the entire pattern, so the expression
m.group(0)is equivalent tom.group().If the match was successful but the group specified failed to match any part of the input sequence, then
nullis returned. Note that some groups, for example(a*), match the empty string. This method will return the empty string when such a group successfully matches the empty string in the input.- Specified by:
groupin interfaceMatchResult- Parameters:
group- The index of a capturing group in this matcher's pattern- Returns:
- The (possibly empty) subsequence captured by the group during the previous match, or
nullif the group failed to match part of the input or if the matcher'sPatternhas changed after a successful match, but a new match has not been attempted - Throws:
IllegalStateException- If no match has yet been attempted, or if the previous match operation failedIndexOutOfBoundsException- If there is no capturing group in the pattern with the given index
- ✓public java.lang.String group(java.lang.String arg0)
- ✓public int groupCount()
- ✓public boolean hasAnchoringBounds()
- ✓public boolean hasMatch()
- ✓public boolean hasTransparentBounds()
- ✓public boolean hitEnd()
- ✓public boolean lookingAt()
- ✓public boolean matches()
- ✓public java.util.Map<java.lang.String, java.lang.Integer> namedGroups()
- ✓public java.util.regex.Pattern pattern()
- ✓public static java.lang.String quoteReplacement(java.lang.String arg0)
- ✓public java.util.regex.Matcher region(int arg0, int arg1)
- ✓public int regionEnd()
- ✓public int regionStart()
- ✓public java.lang.String replaceAll(java.lang.String arg0)
- ✓public java.lang.String replaceAll(java.util.function.Function<java.util.regex.MatchResult, java.lang.String> arg0)
- ✓public java.lang.String replaceFirst(java.lang.String arg0)
- ✓public java.lang.String replaceFirst(java.util.function.Function<java.util.regex.MatchResult, java.lang.String> arg0)
- ✓public boolean requireEnd()
- ✓public java.util.regex.Matcher reset()
- ✓public java.util.regex.Matcher reset(java.lang.CharSequence arg0)
- ✓public java.util.stream.Stream<java.util.regex.MatchResult> results()
- ✓public int start()
- ✓public int start(int arg0)
- ✓public int start(java.lang.String arg0)
- ✓public java.util.regex.MatchResult toMatchResult()
- ✓public java.lang.String toString()
- ✓public java.util.regex.Matcher useAnchoringBounds(boolean arg0)
- ✓public java.util.regex.Matcher usePattern(java.util.regex.Pattern arg0)
- ✓public java.util.regex.Matcher useTransparentBounds(boolean arg0)
Summary
| Elements | Comments | Descriptions | Total | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed | ||
| group() | 4 | 4 | ||||||||
| group(int) | 3 | 3 | ||||||||
| Total | 7 | 7 | ||||||||