[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: literal find?
- From: PA <petite.abeille@...>
- Date: Tue, 15 Mar 2005 12:44:04 +0100
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/