会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
乄末曲丶
博客园
首页
新随笔
管理
2020年2月21日
Lua 正则表达式字符串切割
摘要: 一、包含空字符串 1 function split(str, sep) 2 local res = {} 3 string.gsub(str, '[^' .. sep .. ']*', function(w) 4 table.insert(res, w) 5 end) 6 return res 7
阅读全文
posted @ 2020-02-21 16:36 乄末曲丶
阅读(569)
评论(0)
推荐(0)