1. local function explode ( _str, seperator)
      local pos, arr = 0, {}
      for st, sp in function() return string.find( _str, seperator, pos, true ) end do
      table.insert(arr, string.sub(_str, pos, st-1 ))
      pos = sp + 1
      end
      table.insert(arr, string.sub( _str, pos))
      return arr
      end

    2. local ta2 = explode("hsee_,sdj_,ehi_,djsd","_,")
      local newSt2 = table.concat(ta2,"\n")
      print(newSt2)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
  • 2022-02-20
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2021-05-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案