lua-users home
lua-l archive

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


On 2/08/2013, at 12:50 PM, Paul K <paulclinger@yahoo.com> wrote:

>> I must be missing something obvious.  Any pointers?
>>> =("all all ball all"):gsub("%f[%S]all%f[%s%z]", "none")
>> all none ball none      2
> 
> Something like this?
> 
>> ("all all ball all"):gsub("%f[%w]all%f[%W]", "none")
> "none none ball none" 3

Well, that is obvious now you point it out.  Thanks!