Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Count: Difference between revisions

From WikiOasis Meta
Waki285 (talk | contribs)
New module: count strings
(No difference)

Revision as of 13:45, 6 March 2024

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

local p = {}

function p.count(frame)
	local data = frame.args[1]
	local pat = frame.args[2]
	local _, count = string.gsub(data, pat, '')
	return count
end

return p
Cookies help us deliver our services. By using our services, you agree to our use of cookies.