string TrimRight(string string, string targets)
string – a string
that needs to be processed.
targets –a string,
containing characters to be removed.
Use this function to remove a particular character or a
particular group of characters (targets) from the end of the
The following example demonstrates the use of
string s = TrimRight("abcd", "d c")
Println("New string is ", s)
Output of the example script:
New string is ab