Module:TestMatch

From Wikipedia

Documentation for this module may be created at Module:TestMatch/doc

p = {}
function p.test( title )
	local s = "* [[/hallo/]]\n*[[/tschüss/]]"
	local g = {}
	local i = 1
	for w in string.gmatch(s, "%* ?%[%[%b//") do
		g[i] = string.gsub(string.gsub(w, "%* ?%[%[/", ""), "/", "")
		i = i+1
	end
  	return g[2]
end

return p