lua-users home
lua-l archive

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


Jeff Wise wrote:
I really need to count 3 byte ‘D3A9AF’ but that fails too.

Try this:
    _, count = bytes:gsub("\208\169\175", "")
or this:
    _, count = bytes:gsub(string.char(0xD3,0xA9,0xAF), "")

--
Shmuel