Dup Goto 📝

StringManipulation

PT2/lang/lua 05-21 16:36:32
To Pop
16 lines, 39 words, 320 chars Wednesday 2025-05-21 16:36:32

Split

1

See this stackoverflow

function mysplit(inputstr, sep)
  if sep == nil then
    sep = "%s"
  end
  local t = {}
  for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
    table.insert(t, str)
  end
  return t
end

Notes