ecl-logo Documentation

StringMost

StringMost[string]outputString

returns the all but the last character from the input string.

Details

    Input
    Output

Examples

Basic Examples  (3)

Extract all but the last character in a string:

Extract all but the last character, even if the last characters are not alphanumeric:

Single character strings will return an empty string:

Additional Examples  (2)

StringMost is equivalent to StringDrop[string,-1]:

StringMost does not work on empty strings:

Attributes  (1)

Listable  (1)

Extract all but the last character from each string in a list of strings: