lua-users home
lua-l archive

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


Romulo Bahiense wrote:
print((string.gsub('Hi, %NAME! Is %EMAIL your email?', '%%(%w+)',row)))
 > Hi, John Doe! Is me@earth.com your email?

Oh, I thought the patch was for char-by-char substitution mapping.
I agree that general substitution mapping would probably be the
common case for gsub.

--Adam
--
Adam D. Moss   -   adam@gimp.org