Lexer matching case insensitive

ceving
Mon, 27 Nov 2023 12:55:04 +0000
General

The original SRE specification contains the definition of uncase:

UNCASE is a regexp operator producing a regexp that matches any
case permutation of any string that matches (: <sre> ...).
For example, the regexp

(uncase "foo")

matches the strings foo, foO, fOo, fOO, Foo, ...

I can not find it in parser-tools-lib.

How to match case-insensitive instead?

3 posts - 2 participants