[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: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 31 Jul 2008 08:51:14 -0300
> local n = select(2, s:gsub('\n', '\n'))
This one creates a new string (identical to the original one).