[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: confused by the wierd "q" option of "string.format".
- From: Sam Roberts <vieuxtech@...>
- Date: Mon, 11 Jul 2011 15:16:49 -0700
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