vl-string-right-trim

(vl-string-right-trim characters string)

The vl-string-right-trim function removes the specified string from the end of a specified text string.

Arguments

characters specifies a listing of the characters to be removed in form of a text string.

string specifies a text string from which the specified characters are removed at its end unless a character is found that is not covered by the character specification.

Return Value

The function returns a string containing a substring with all matching characters ending the original text string removed.

Examples

: (vl-string-right-trim "age" "My Message")

"My Mess"

: (vl-string-right-trim "ega" "My Message")

"My Mess"

Related Functions

vl-string-left-trim