SplitString

From ESOUI Wiki

Jump to: navigation, search

This function splits a string by any of a set of delimiters. The divided chunks are returned.

Arguments

delims
The characters to split on. They will not be included in the output.
stringToSplit
The string to split.

Example

local chunks = {SplitString("abc", "As simple as can be!")}
--
-- chunks == {
--    [1] = "As simple ",
--    [2] = "s",
--    [3] = "n ",
--    [4] = "e!"
-- }
--

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox