- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Difference between revisions of "Module:RegExpr"
Jump to navigation
Jump to search
IbarakiIbuki (talk | contribs) |
IbarakiIbuki (talk | contribs) m |
||
Line 10: | Line 10: | ||
return result | return result | ||
end | end | ||
+ | |||
+ | return re |
Revision as of 06:00, 1 June 2017
Documentation for this module may be created at Module:RegExpr/doc
local re = {}
function re.findMatch(frame)
-- frame[1] = test string
-- frame[2] = Lua pattern
result = string.match(frame[1], frame[2])
if (result == nil) then
result = ""
end
return result
end
return re