Information

This site will undergo a brief period of maintenance on Friday, 18 December at 12:30 AM Central/12:00 PM IST. During a 30 minute window, site availability may be intermittent.

strSplit function


strSplit String Array

strSplit (String input, String expr)

Splits input in to an array of tokens using the expression in expr as token delimiters.

Parameters:

input - the string to be split

expr - a regular expression to define the token separators

Returns:

Array of strings, each element contains one token

Example:

str = "This is an example string"

tokens = strSplit(str, " ")

// tokens[0] is "This"

// tokens[1] is "is"

// tokens[2] is "an"

// tokens[3] is "example"

// tokens[4] is "string"



Related topic

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC AMI Console Management for zEnterprise, BMC AMI Console Automation for zEnterprise, and BMC AMI SecureHMC 4.0