Skip to content

string.explode

Jason Perkins edited this page May 25, 2015 · 4 revisions

Returns an array of strings, each of which is a substring formed by splitting on the provided pattern.

parts = string.explode("str", "pattern")

Parameters

str is the string to be split. pattern is the separator pattern at which to split; it may use Lua's pattern matching syntax.

Return Value

A list of substrings.

Availability

Premake 4.0 or later.

See Also

Clone this wiki locally