[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lpeg query
- From: Gavin Wraith <gavin@...>
- Date: Sun, 19 Jan 2014 18:09:03 GMT
In message <52DBFBD5.5050507@dkolf.de> you wrote:
> If you want it to return nil, make sure that your pattern does not match
> in this case. You would simply have to change your definition of WORDS
> to require at least one captured word:
>
> local WORDS = BLANK*(C(WORD)*BLANK)^1*END
>
> This should then work as expected.
Yes it does. Thanks.
--
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/