Module:String/pattern escape

From Imperivm Romanvm
< Module:String
Revision as of 15:07, 9 June 2022 by Procurator-Imperii-Romani (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:String/pattern escape/doc

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