lua-users home
lua-l archive

Re: Why re at all, not straight LPeg?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> > 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

AltStyle によって変換されたページ (->オリジナル) /