vl-string-left-trim

(vl-string-left-trim characters string)

The vl-string-left-trim function removes the specified string from the beginning 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 beginning 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 leading the original text string removed.

Examples

: (vl-string-left-trim "My " "My Message")

"essage"

: (vl-string-left-trim "My" "My Message")

" Message"

: (vl-string-left-trim " " " My Message")

"My Message"

: (vl-string-left-trim "\n\t" "\n\t My Message")

" My Message"

: (vl-string-left-trim "\t\n" "\n\t My Message")

" My Message"

Related Functions

vl-string-right-trim