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)))
(No difference)

Revision as of 08:40, 4 January 2022

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

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