[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: String to Hexadecimal Conversion
- From: Frederico Cadete <frederico@...>
- Date: Mon, 27 Oct 2014 19:25:50 +0100
>> str:match("^%s*0[Xx]%x+%s*$")
>
>What library is everyone using? I'm having trouble finding information on all this syntax, etc. The standard string library typically uses string.xxx.
It's not a string library, it's a method in the string type (the
variable is called "str" in that example). The colon syntax is a
shortcut for OO-style programming, see here for example:
http://www.lua.org/pil/16.html
On Mon, Oct 27, 2014 at 7:04 PM, Leinen, Rick <RLeinen@leviton.com> wrote:
>> str:match("^%s*0[Xx]%x+%s*$")
>
> What library is everyone using? I'm having trouble finding information on all this syntax, etc. The standard string library typically uses string.xxx.
>
> Rick
>