lua-users home
lua-l archive

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



On Sep 18, 2018, at 2:34 PM, William Ahern <william@25thandClement.com> wrote:

> On Tue, Sep 18, 2018 at 07:40:05PM +0600, joy mondal wrote:
> 
> local blank = P"\n\r \v\t"
> local special = P"\\" + P'"' + blank

definition of blank is wrong, should be lpeg.S


> Once you tweak regular expressions to become as powerful as PEGs, you've
> simply reinvented PEGs, and in particular necessarily implemented predicates
> and ordered choice.

Where is your question ?

BTW, LPEG and regular expression is totally different.
You can not tweak a regular expression, and turn to LPEG ...