【发布时间】:2017-10-20 00:36:41
【问题描述】:
我有一个像“function *()”这样的搜索字符串。 * 是通配符。我想要一个包含所有匹配字符串列表的表格。
例如 如果我使用搜索字符串“function *()”
搜索此字符串function one()
print("Hello")
end
local function two()
print("World")
end
它应该返回表 {"function one()","function two()"}。如何在 LUA 中做到这一点?
【问题讨论】:
-
retrurn {one,two}
标签: lua