moreati / ppeg

A Python port of Lua's LPeg pattern matching library
MIT License
6 stars 2 forks source link

LPeg re.lua equivalent #13

Open moreati opened 8 years ago

moreati commented 8 years ago

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.