TinyMUX

Lpos()

Functions

FUNCTION: lpos(<string>, <character>)

This function returns a list of the positions that <character> occupies in <string>, with the first character of the string being 0. (Note that this differs from the pos() function, but it consistent with functions such as mid().)

If <character> is null, a space is assumed.

Example:

> say lpos(a-bc-def-g,-)
You say, "1 4 8"