[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua patterns
- From: Coda Highland <chighland@...>
- Date: Mon, 27 Jul 2015 07:05:54 -0700
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