Module:Replace: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

6 June 2024

  • curprev 12:2112:21, 6 June 2024Hefner talk contribs 6,972 bytes +6,972 Created page with "-- <pre> -- A module to allow substitution of regex replace functions local p = {} function p.main(frame) local args = frame:getParent().args return p._main(args) end -- a : string -- b : search -- c : replace function p._main(args) local a = mw.text.decode(args[1]) local b = mw.text.decode(args[2] or '') local c = mw.text.decode(args[3] or '') -- let us use real regex stuff b = mw.ustring.gsub(b,'\\','%') :gsub('%*%?','-') :gsub('¦','|') c = mw.us..."