[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why re at all, not straight LPeg?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 3 Aug 2015 09:41:07 -0300
> > Should I invest some time getting to grips with the idiolectic syntax
> > expected by re.compile, or is that recommended only for those who
> > already know and love several other regexes?
>
> I started with it because I found it easier to read and write (it's more
> like BNF than it is a regular expression). It also makes it easier to
> translate the various RFCs into something useful.
This is the main motivation for 're': an easy entry-level for LPeg. Many
people start with 're' and, as they get experience with the various
constructions, move to the basic API.
-- Roberto