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]


On Thu, Jul 16, 2015 at 3:16 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> It seems adequate to allow this usage of ^ and $ as set components only,
> not as character classes that may appear anywhere. There is the difficulty
> that ^ is also the set complement character.
There's also the difficulty that existing code may well be looking for
something like [!@#$%^&*()] and therefore change behavior, with no
warning possible and potentially a long time of remaining hidden
before causing problems.
/s/ Adam

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