We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
⚠️ We have a new website! Visit now for the most update to date documentation. This wiki is no longer being maintained.
Returns an array of strings, each of which is a substring formed by splitting on the provided pattern.
parts = string.explode("str", "pattern")
str is the string to be split. pattern is the separator pattern at which to split; it may use Lua's pattern matching syntax.
str
A list of substrings.
e = "a\nmulti\nline\nstring\n" > for k,v in next, string.explode(e, "\n") do print(k, v) end 1 a 2 multi 3 line 4 string 5
Premake 4.0 or later.