sb two strings: the text from the append position up to the beginning of the
most recent match, and then the replacement with submatch groups substituted for references of
the form $n, where n is the group number in decimal.sb two strings: the text from the append position up to the beginning of the
most recent match, and then the replacement with submatch groups substituted for references of
the form $n, where n is the group number in decimal.sb the substring of the input from the append position to the end of the
input.sb the substring of the input from the append position to the end of the
input.Pattern corresponding to compiling regex with the
default flags (0).Pattern corresponding to compiling regex with the
given flags..) matches all characters, including newline.null if the group was not matched.Pattern on a specific input.Matcher matching the pattern against the input.^ and $ match at beginning and end of line, not just
beginning and end of input.Pattern associated with this Matcher.java.util.regex.Pattern API.s, so that the returned string could be used in
Matcher.appendReplacement(java.lang.StringBuffer, java.lang.String) as a literal replacement of s.replacement, interpreted as for
appendReplacement.replacement, interpreted as for
appendReplacement.Matcher, rewinding input and discarding any match information.Matcher and changes the input.Matcher and changes the input.