lua-users home
lua-l archive

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


On Wed, Sep 17, 2008 at 2:40 PM, Jeff Wise <jwise@sealyrealty.com> wrote:
> My attempt at counting certain records is failing. Does the "string.gsub"
> require a delimited string? I am trying to use hex without a null at the
> end.
>
>
>
>    count = select(2, string.gsub(bytes, 0Xd3, 0xd3))

0xD3 evaluates to a number, not a string.  try string.char(0xD3)



-- 
Javier