lua-users home
lua-l archive

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


> And all the suggested options for gsub seem not totally foolproof or
> not easy (not trivially easy for beginners, and the %p seems to depend
> on locale which doesn't sound like a good idea if this is meant to be
> secure in all cases - and it's not entirely obvious to beginners
> either).

Forget %p, if you cannot understand locales. Use ^%W, as several others
already mentioned in this thread, and as PiL recommends. (BTW, a good
book, for beginners too ;)

-- Roberto