Re: string.gsub pattern question
[
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: 2011年9月27日 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