Jump to content

Module:Strip to numbers

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by SMcCandlish (talk | contribs) at 21:05, 17 July 2015 (just generated a different f'ing error). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

function p.doIt(frame)
	local theString = frame.args[1]
	local onlyNumerals
	onlyNumerals = (string.gsub(theString, "%D", ""))
	return onlyNumerals
end

return p