Dup Ver Goto 📝

StringManipulation

PT2/lang/lua does not exist
To
16 lines, 39 words, 320 chars Page 'StringManipulation' does not exist.

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