lua-users home
lua-l archive

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


On Sun, Jul 26, 2015 at 5:24 PM, Soni L. <fakedme@gmail.com> wrote:
>> %s* must match ALL leading whitespace, so that no whitespace is
>> captured by (.-).
>
> %s+? (where ? is the good old ? you're used to, applied to %s+, where + is
> the good old + you're used to)
>
> We also don't need ? if we allow empty alternations: the regex (t|) would be
> equivalent to t?, and (|t) would be a non-greedy t?

That would, of course, require supporting alternations at all.

/s/ Adam