Last()

From TinyMUX
Jump to navigation Jump to search


last(<string>[, <delim>])

Returns the last word of a string, that is, everything to the right of the last space in the string, or the entire string if there are no spaces in the string.

<delim> may be used to specify a word delimiter other than a space.

Example

> say last(This is a test)

You say, "test"


> say last(Happy-Fun-Test-Thing,-) You say, "Thing"

Related Topics

first(), rest()