Module:String2/sandbox: Difference between revisions

Content deleted Content added
tidy
more specific
Line 13:
p.sentence = function (frame )
local s = mw.text.trim( frame.args[1] or "" )
local s2, n = string.gsub(s, "^(.*)<li>)(.*)", "first part = %1 >> firstsecond part >> %2" )
if n > 0 then
return s2 .. " = " .. n .. "<br>"