Home
Random
Log in
Settings
Donations
About Wikibooks
Disclaimers
Search
Module
:
String/pattern escape
Language
Watch
Edit
<
Module:String
Module documentation
[
create
] [
purge
]
You might want to
create
a documentation page for this
Scribunto module
.
Editors can experiment in this module's sandbox
(
create
|
mirror
)
and testcases
(
create
)
pages.
Add categories to the
/doc
subpage.
Subpages of this module
.
return
function
(
str
)
return
mw
.
ustring
.
gsub
(
str
,
"([%(%)%.%%%+%-%*%?%[%^%$%]])"
,
"%%%1"
)
end