Lua
张成phpzc
这个作者很懒,什么都没留下…
展开
-
lua指定规则匹配字符
function isLegalStr(str) local len = string.len(str) local base = {} local basePregStr = "_,.!?;:" local basePregStrLen = string.len(basePregStr) for i=1,basePregStrLen do table.ins原创 2014-11-07 16:14:27 · 797 阅读 · 0 评论 -
Lua千分位格式化数字
function number_format(num,deperator) local str1 ="" local str = tostring(num) local strLen = string.len(str) if deperator == nil then deperator = "," end depe...原创 2015-01-20 00:14:08 · 4471 阅读 · 1 评论