Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Module:RegExpr
(view source)
Revision as of 06:02, 1 June 2017
8 bytes added
,
7 years ago
m
no edit summary
Line 2:
Line 2:
function re.findMatch(frame)
function re.findMatch(frame)
−
--
frame
[1] = test string
+
--
args
[1] = test string
−
--
frame
[2] = Lua pattern
+
--
args
[2] = Lua pattern
−
result = string.match(frame[1], frame[2])
+
result = string.match(frame
.args
[1], frame
.args
[2])
if (result == nil) then
if (result == nil) then
result = ""
result = ""
IbarakiIbuki
5,421
edits