Click or drag to resize
TextHelperSplitByString Method
Splits the given string by a defined string separator

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static string[] SplitByString(
	string text,
	string separator,
	int minItems = 0
)

Parameters

text
Type: SystemString
Text to split
separator
Type: SystemString
Separator
minItems (Optional)
Type: SystemInt32
If defined, the output array is filled with empty (null) items up to the given count

Return Value

Type: String
See Also