Alexandria Uptime: 15.88 Days
Total players online: 0



Take the Tour | Site Map

Name

split — Separates a string into pieces by breaking at a given string.

Synopsis

call string.txt split { string } { separator } [ return ]

Author

WarLocke

Parameters

Table 107. split parameters

NameDescription
stringString to split.
separatorSeparator string
returnName of return array ('return' by default)

Description

Separates a string into pieces by breaking at a given string. @%3 yields the number of elements extracted. @%3 > 1 if successful. @%3 = 1 if not found. @%3 = -1 if process failed. @%3[n] yield the nth splited substring.

Changes

#strRes

Example

call string.txt split x_y_z _

See Also

string.join