lua-users home
lua-l archive

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


>> 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
>