string.Split
From Garry's Mod
Contents |
Description
Splits the string into a table of strings, separated by the second argument.
Arguments
string Inputstring
String to split
Arguments
string Separator
Character(s) to split with.
Returns
Split table
Examples
Example
Demonstrates the use of this function.
local mystring = "This is some text" PrintTable( string.Split( mystring, " " ) )
Output:
1 = This 2 = is 3 = some 4 = text