Jump to content

Module:string/pattern escape

ពីWiktionary

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

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