• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Module:RegExpr

From Kancolle Wiki
Jump to navigation Jump to search

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