vl-string-right-trim (AutoLISP)

Removes the specified characters from the end of a string

(vl-string-right-trim character-set string)

Arguments

character-set

A string listing the characters to be removed.

string

The string to be stripped of character-set.

Return Values

A string containing a substring of string with all trailing characters in character-set removed.

Examples

(vl-string-right-trim " \t\n" " STR \n\t ")
" STR"

(vl-string-right-trim "1356789" "3CPO is not R2D267891")
"3CPO is not R2D2"

(vl-string-right-trim " " "There are too many spaces here      ")
"There are too many spaces here"