lua-users home
lua-l archive

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

Jerome Vuarand wrote:
> 2008/10/2 Xruptor <>:
>> This is why I would like to strip all magic characters from a string before
>> parsing ;)  Help is always appreciated.
> function escape(str)
>   return (str:gsub("%W", "%%%1"))
> end

What Jerome said.
Of course, if you'd actually stayed connected to IRC rather than
quitting when your question wasn't answered /immediately/, you might
have had the answer even earlier.