[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Why is string.find() giving wrong output?
- From: Aaron Brown <arundelo@...>
- Date: Mon, 30 Jan 2012 22:15:35 -0500
> The reason it works is that string.find is returning a
> number,
Sorry! -- I meant string.len here. Anyway, the main point
is to do it this way:
> string.find(a, '.', 1, true)
because the other way will confuse someone reading your
code.
--
Aaron
http://arundelo.com/