Module:string/pattern escape

Definition from Wiktionary, the free dictionary
Jump to navigation Jump to search

return function (str)
	return mw.ustring.gsub(str, "([%(%)%.%%%+%-%*%?%[%^%$%]])", "%%%1")
end