$ luarocks install org.conman.parsers.utf8
LPEG expression to match valid UTF-8 characters, both graphic and
control sets. This module handles *only* the characters not defined
by ASCII. If you need to parse both ASCII and UTF-8:
char = require "org.conman.parsers.utf8"
+ require "org.conman.parsers.ascii"
NOTE: The UTF-8 control characters may match more than a single
character. For example, the commonly called ANSI codes (which are
not ANSI but ISO) like "<ESC>[32;40m" will be matched as one unit.
Versions
Dependencies
LPeg >= 1.0.0
lua >= 5.1, <= 5.4
org.conman.parsers.ascii.char >= 1.0.0
org.conman.parsers.ascii.control >= 1.0.0
org.conman.parsers.utf8.char >= 1.0.0
org.conman.parsers.utf8.control >= 1.0.0