Java Matcher appendTail() MethodThis method is used to implement a terminal append-and-replace step. This method reads characters from the input sequence, starting at the replaced append position, and appends them to the given string buffer. SyntaxParameterstrbuff - The target string buffer ReturnsThe target string buffer Example 1Test it NowOutput: 13-08-2018 Example 2Test it NowOutput of the above program start : 3, End : 6 start : 8, End : 11 After Replacing Matching position: 13-08-2018
Next TopicJava Matcher class
|