lua-users home
lua-l archive

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


On Mon, Nov 4, 2013 at 8:50 PM, mniip <mniip@mniip.com> wrote:
> If you look into the source, when you write %+ you actually create a
> character class consisting of a single character, '+', same with %%
> http://www.lua.org/source/5.1/lstrlib.c.html#match_class

Ok, that makes sense. So you can't use '%'  as the bound of a range,
but [!-$%%] will do.

Actually, %x as an escape sequence is described in the character class
section, I had not realized the implications.

Thanks.

-- Pierre-Yves