[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Typo in the manual?
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: Mon, 4 Nov 2013 22:12:35 +0100
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