[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Finding end of string
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 10 Oct 2017 19:44:19 +0200
2017-10-10 14:52 GMT+02:00 Soni L. <fakedme@gmail.com>:
> local m, pos
> repeat -- TODO fix
> m, pos = string.match(word_eol[2],
> "%f[\\"..cw:sub(1,1).."](\\*)"..cw:sub(1,1).."()", pos)
> until #m % 2 == 0
>
> I'm having issues making this work.
The title of the post describes a trivial problem (answer: #str+1).
I can't work by reading it what problem the code tries to solve.