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.Pattern corresponding to
compiling regex with the default flags (0).Pattern corresponding to
compiling regex with the default flags (0)..) matches all characters, including newline.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.replacement,
interpreted as for appendReplacement.replacement,
interpreted as for appendReplacement.Matcher, rewinding input and
discarding any match information.Matcher and changes the input.Copyright © 2015. All Rights Reserved.