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.

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.