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