Javatpoint Logo
Javatpoint Logo

Java Matcher appendTail() Method

This 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.

Syntax

Parameter

strbuff - The target string buffer

Returns

The target string buffer

Example 1

Test it Now

Output:

13-08-2018 

Example 2

Test it Now

Output of the above program

 start : 3, End : 6
 start : 8, End : 11
 After Replacing Matching position: 13-08-2018 
Next TopicJava Matcher class




Help Others, Please Share

facebook twitter pinterest