Module:String/pattern escape: Difference between revisions

From Imperivm Romanvm
Jump to navigation Jump to search
m (Protected "Module:string/pattern escape" ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite)))
 
m (1 revision imported)
 
(No difference)

Latest revision as of 15:07, 9 June 2022

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

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