lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Tue, Dec 29, 2009 at 5:42 PM, Henryla <> wrote:
> how about this very ugly and stupid format...
> str = "my dog"
> ret = (" " .. str .. " "):match("%W(dog)%W")

Oh yes, that does work - but now imagine that you have a lot of big
strings which you have to modify in this way in order to search for
words. Luiz' orginal suggestion would probably be the most efficient