lua-users home
lua-l archive

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


2015-07-19 22:01 GMT+02:00 Sean Conner <sean@conman.org>:
> I think I was confused because
>
>         ("a"):match "[%%-a]"
>
> worked, but in playing with it further, it seems that this created a class
> of three characters, '%', '-' and 'a'.  Wierd.

>From the Manual:

The interaction between ranges and classes is not defined. Therefore,
patterns like [%a-z] or [a-%%] have no meaning.