lua-users home
lua-l archive

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


how about this very ugly and stupid format...

str = "my dog"
ret = (" " .. str .. " "):match("%W(dog)%W")


^^|||

BR,

Henry



On Tue, Dec 29, 2009 at 11:06 PM, steve donovan <steve.j.donovan@gmail.com> wrote:
On Tue, Dec 29, 2009 at 5:04 PM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> Try "%W?word%W?"
>
> Sorry, that does not work.

I tried that ;) See how useful %f is ?