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 ) http://dev.alt.textdrive.com/file/LW/LWTemplate.lua Customary template example: http://dev.alt.textdrive.com/file/LW/LWDirectoryService.txt Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/