lua-users home
lua-l archive

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


Choonster TheMage <choonster.2010@gmail.com> [13-10-29 03:12]:
> On 29 Oct 2013 12:33, <meino.cramer@gmx.de> wrote:
> >
> > 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
> >
> >
> >
> 
> 5.1 has a manual too:
> http://www.lua.org/manual/5.1/manual.html
> 
> Most of the library functions are the same between 5.1 and 5.2.

Lua 5.1.5 cannot do real backward search.

Best regards,
mcc