(vl-string-left/right-trim) is known with this behavior to remove additional characters that are found in pattern string... To me even (vl-string-trim) is not 100% reliable... The best choice is to try to avoid them and use ordinary (substr) function...
I get the vl-string-left-trim error.
Note that this behaviour is
not an error, nor is it an issue with the apparent 'reliability' of the
vl-string-*-trim functions. The
vl-string-left-trim function is operating exactly as designed and described by the documentation, removing all characters which appear in the supplied character set argument.
In the given example posted by GDF, the character set is:
"190240 256830086"
Therefore, the
vl-string-left-trim function will remove all occurrences of the characters
" ","0","1","2","3","4","5","6","8","9" from the left of the string, until a character is reached which is not a member of this set.
Applied to the string:
"190240 256830086 4420 Sugargrove Ln"
This
correctly returns the result:
"Sugargrove Ln"
As the characters
" ", "0", "2" & "4" are a member of the character set.
This discussion is very similar to
this recent thread.