[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: LPEG: set of flags
- From: Александр Машин <alex.mashin@...>
- Date: Tue, 28 Dec 2021 00:09:18 +0700
Dear all,
is there an LPEG rule to describe a set of characters, in which
characters can be in any order, and each can be present only once or not
at all?
Examples, assuming that allowed flags are 'i', 'm', 's':
* matching:
** 'ims',
** 'si',
** 'i',
** '';
* not matching:
** 'iu' (unknown flag),
** 'imi' (i repeats twice).
Alexander Mashin