[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: string search from back to front?
- From: meino.cramer@...
- Date: Tue, 29 Oct 2013 02:32:52 +0100
Petite Abeille <petite.abeille@gmail.com> [13-10-29 02:28]:
>
> 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
>
I am using Lua 5.1.5, thats why I am reading PIL 2ed.
Best regards,
mcc