lua-users home
lua-l archive

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


On Fri, Jul 8, 2011 at 6:55 AM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
....
> -- change as needed
> local tochange = "[\0-\31\"\'\\\127-\255]"

Perplexed users of lua 5.1 should replace the start of this pattern with:

  "[%z\1-\31...etc.

because \0 isn't valid in a 5.1 pattern spec.

Cheers,
Sam