[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: LPeg Matching Inverse of Set
- From: Scott Morgan <blumf@...>
- Date: Wed, 9 Mar 2022 15:17:39 +0000
I'm starting out with LPeg but struggling with inverse matching on a set.
As an example, trying to match a substring without ';' or ',' chars
patt = (-lpeg.S";,") ^ 1
Fails with "loop body may accept empty string"
Plain -lpeg.S";," does the right thing for the first char, so why
doesn't ^ 1 extend that for longer strings?
Scott