Skip to content
mba105 edited this page Sep 24, 2014 · 2 revisions

Home > [Scripting Reference](Scripting Reference) > string.explode


string.explode

The string.explode function returns an array of strings, each of which is a substring of s formed by splitting on boundaries formed by pattern.

#!lua
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.

Clone this wiki locally