[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Finding word matches without the frontier pattern
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 29 Dec 2009 17:55:21 +0200
On Tue, Dec 29, 2009 at 5:42 PM, Henryla <firstname.lastname@example.org> 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