Module:Delink: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
revert - doesn't work
(add anchor to the url pattern)
(revert - doesn't work)
Line 22:
else
s = mw.ustring.match(s, "^%[" .. url_prefix .. "(.*)%]") -- Grab all of the text after the URL prefix and before the final square bracket.
s = mw.ustring.match(s, '^.-(["<>%s ].*$)') or "" -- Grab all of the text after the first URL separator character ("<> ).
s = mw.ustring.match(s, "^%s* ?(.-*)$") -- RemoveIf anythe whitespaceseparating fromcharacter thewas starta ofspace, thetrim displayit textoff.
return s
end
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu