LPeg is a pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs).
LPeg is a pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs). It defines patterns as first-class objects that can be composed using regular Lua operators. Its powerful capture mechanisms allows to search, extract and transform strings, following regular expressions or full grammars.
Useful links:
- LPeg Recipes on the Lua wiki.