lua-users home
lua-l archive

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


	Hi Thomas

> for l in string.gfind(MyText,"localgreek%b{}") do
>     l = string.gsub(l,'a','α')
>     print(l)
> end
	You can use gsub for everything:

-- untested
string.gsub (MyText, "localgreek(%b{})", function (l)
	return string.gsub (l, 'a', 'α')
end)

	Tomás