string.split

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

string.split(str, separator)

Description

Splits a string using the given separator string, returning an array (sequential table) of sub-strings.

Parameters:

  • str — The string to split.
  • separator — The sub-string to look for to split the string.

Example 1

string.split("a,b", ",") == {"a","b"}
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox