Link Search Menu Expand Document

RegexMatcher.AppendTail Method

Explanation Behaves as a append-and-replace method.

Returns from the input string after appends it at the tail position.
Call format var s = rm.AppendTail( )
Return value Character string from the input character string after the append position to the tail.
From Ver.5.0.1, UString type character string is returned in Unicode mode.
Argument None
Exception None
Example of use
var p = RegexPattern.Compile("([0-9])([0-9])([0-9])");
var m = p.Matcher("Biz/Browser 311, Biz/Desginer 400, abcde");
var s = "";
while (m.Find()) {
    s += m.AppendReplacement("$1.$2.$3");
}
s += m.AppendTail();
print(s, "\n");
    
Related item AppendReplacement method