lua-users home
lua-l archive

Re: Regex question

[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

AltStyle によって変換されたページ (->オリジナル) /