[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to count the number of lines in a string?
- From: Olivier Galibert <galibert@...>
- Date: Thu, 31 Jul 2008 13:42:42 +0200
> local n=0
> for i in s:gmatch("\n") do n=n+1 end
> print(n)
Thanks, I'll use that one then :-)
OG.