Split

Description

Breaks up the input string into parts based on an arbitrary delimiter.  The delimiter can be a regular expression.

Syntax

target.strlib.Split( input, "delimiter" )

delimiter - This is a string or regular expression

Return value

This function returns an array of strings.

Samples

'---------- Start ----------

Function Start

Dim str, arr

str = "Using the Split method to split strings."

arr = target.strlib.Split(str, "to")

trg.Message( arr(0) )

End Function

In this case the string is being split at the word "to" so there will be two output strings in the output array.

See also

TextConverter's "this" Object