[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: string search from back to front?
- From: Petite Abeille <petite.abeille@...>
- Date: Mon, 28 Oct 2013 20:20:38 +0100
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