As well as the lpeg module LPeg ships a pure Lua module called re. This doesn't implement regular expressions, but rather a more powerful grammar language with some syntax inspired by regular expressions. It should be possible to implement pe, a pure Python workalike, using PPeg.
Ideally I like this module to have a similar API to Python's stdlib re, to gently ease those of us more comfortable with regex into the world of PEGs.
As well as the
lpeg
module LPeg ships a pure Lua module calledre
. This doesn't implement regular expressions, but rather a more powerful grammar language with some syntax inspired by regular expressions. It should be possible to implementpe
, a pure Python workalike, using PPeg.Ideally I like this module to have a similar API to Python's stdlib
re
, to gently ease those of us more comfortable with regex into the world of PEGs.