RE: Why is string.find() giving wrong output?
[
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: 2012年1月30日 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/