StringUtils SplitString Method C# API
Splits a string based upon any character in the specified token.

Namespace: Facilita.Util
Assembly: fc_clr (in fc_clr.dll) Version: 9.4.0.26
Syntax

public static string[] SplitString(
	string p,
	string token
)

Parameters

p
Type: System String
The string to split.
token
Type: System String
The characters to use as delimiters.

Return Value

An array of strings.
Remarks

Note Note
The string is split on any individual character in the token parameter, not the string as a whole.
Examples

The following example demonstrates splitting a string on space and 'o' characters. The result is an array which looks like this: ["Split", "me", "up!", "W", "rd1", "W", "rd2", "W", "rd3."].
string[] tokens = StringUtils.SplitString("Split me up! Word1 Word2 Word3.", " o");

foreach (string token in tokens)
{
    WriteMessage("Token: " + token);
}
See Also