vl-string-trim
 
 
 

Removes the specified characters from the beginning and end of a string

(vl-string-trim char-set str)

Arguments

char-set

A string listing the characters to be removed.

str

The string to be trimmed of char-set.

Return Values

The value of str, after any characters have been trimmed.

Examples

_$ (vl-string-trim " \t\n"
" \t\n STR \n\t ")
"STR"
_$ (vl-string-trim "this
is junk" "this is junk Don't call this junk! this is junk")
"Don't call this junk!"
_$ (vl-string-trim " " "
	 Leave me alone   ")
"Leave me alone"