Module:RegExpr

Revision as of 06:02, 1 June 2017 by IbarakiIbuki (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

local re = {}

function re.findMatch(frame)
	-- args[1] = test string
	-- args[2] = Lua pattern
	result = string.match(frame.args[1], frame.args[2])
	if (result == nil) then
		result = ""
	end
	return result
end

return re