lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Oct 28, 2013, at 7:42 PM, meino.cramer@gmx.de wrote:

> in the PIL 2ed

Use the manual:

http://www.lua.org/manual/5.2/

> I didn't find a way to search from the end of a string
> to the beginning. There is a way to specify an offset from the back 
> with a negative instead of a positiv, but from that specified point
> the search goes from 'left to right' or 'front to back'.

http://www.lua.org/manual/5.2/manual.html#pdf-string.reverse

> Is there real;y no equivalent to "RIGHTSTR()" in lua or did I overlook
> something ?

http://www.lua.org/manual/5.2/manual.html#pdf-string.sub