lua-users home
lua-l archive

Re: Patterns: Why are anchors not character classes?

[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.

AltStyle によって変換されたページ (->オリジナル) /