lua-users home
lua-l archive

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

On Mar 15, 2005, at 02:18, Ashwin Hirschi wrote:

Ah... I forgot the customary exercise hint:

Use a capture in the gsub pattern and a *function* for the repl parameter.

Thanks for the hint :)

I'm slowly getting acquainted with the mighty string.gsub():

return string.gsub( aContent, "(%(v%:(%w-)%))", aFunction )

Customary template example:


PA, Onnay Equitursay