Module:Extract text

Revision as of 23:05, 13 December 2020 by Sol (talk | contribs) (this might be more useful)

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

local ExtractText = {}

function ExtractText.from_parentheses(frame)
	local match_result = frame.args[1]:match'%((.*)%)'
	
	if match_result == nil then
		return nil
	else
		return match_result
	end
end

return ExtractText