[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: string.gsub pattern question
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 27 Sep 2011 09:17:02 -0300
> nLineLength = string.len(line)
> if string.sub(line, nLineLength-3, nLineLength) ~= "<BR>" then
> line = line .. "<BR>"
> end
You don't need nLineLength. Try
if string.sub(line, -3) ~= "<BR>" then