Module:String/pattern escape: Difference between revisions

From Thadar En
Jump to navigation Jump to search
en>Surjection
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 22:24, 5 September 2022

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

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