Splits a string based upon any character in the specified token.
Namespace: Facilita.UtilAssembly: fc_clr (in fc_clr.dll) Version: 9.5.8.37
Syntax
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 |
---|
The string is split on any individual character in the token parameter, not the string as a whole. |
Examples
string[] tokens = StringUtils.SplitString("Split me up! Word1 Word2 Word3.", " o"); foreach (string token in tokens) { WriteMessage("Token: " + token); }
See Also