lua-users home
lua-l archive

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


_,_,last = string.find(str,'(^\n]*$)')

which produces
nil

Try:

print(string.find(buffer,'([^\n]*)$'))

--rb