Module:String2: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(implement findlast) |
(debug) |
||
Line 77: | Line 77: | ||
local s = mw.text.trim( frame.args[1] or "" ) |
local s = mw.text.trim( frame.args[1] or "" ) |
||
local sep = mw.text.trim( frame.args[2] or ", " ) |
local sep = mw.text.trim( frame.args[2] or ", " ) |
||
pattern = ".*" .. |
local pattern = ".*" .. ", " .. "(.*)" |
||
a, b, last = s:find(pattern) |
a, b, last = s:find(pattern) |
||
if a then |
if a then |