lua-users home
lua-l archive

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


> On Wed, May 2, 2012 at 1:08 PM, Daurnimator <quae@daurnimator.com> wrote:
> > You have to use %z to match embedded nulls; a unexpected lesson I
> > learnt long ago.
> 
> Thanks, I _knew_ it had something to do with z ;)  Well then I can
> escape \000 as %z, but only for 5.1

Beware that something like "[\0-\31]" cannot be translated to "[%z-\31]";
it must be written as "[%z\1-\31]".

-- Roberto