UserLand Software Home  |  Manila  |  Radio  |  Support  |  News

DocServer

Prev | Next | String Verbs > string.popTrailing

string.popTrailing

Syntax string.popTrailing (string, character)

Params string is the string of characters from which you wish to remove certain trailing characters.

character is the trailing character you wish to remove.

Action Deletes all trailing occurrences of character from string.

Returns The resulting string.

Examples string.popTrailing ("items", 's')

   » "item"

string.popTrailing ("###34.23#", '#')

   » "###34.23"

Note that it leaves the leading pound signs in place; only trailing characters are removed.

string.popTrailing ("No trailing characters here!", '#')

   » "No trailing characters here!"

No trailing characters are found, so the string is returned unchanged.

See Also string.popLeading

Prev | Next | String Verbs > string.popTrailing

Anonymization by Anonymouse.org ~ Adverts
Anonymouse better ad-free, faster and with encryption?
X