Click or drag to resize

GH_TreeFilterSplitStringWithExpressions Method

Split a string into segments using level-aware split. This method throws exceptions if the input string is not correctly formatted.

Namespace:  Grasshopper.Kernel.Data
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public static List<string> SplitStringWithExpressions(
	string text,
	char separator
)

Parameters

text
Type: SystemString
String to split.
separator
Type: SystemChar
Splitting character.

Return Value

Type: ListString
A list of string segments.
Exceptions
ExceptionCondition
GH_BracketMismatchExceptionThrown when the opening and closing brackets don't add up.
GH_StringMismatchExceptionThrown when the string delimeter symbols don't add up.
See Also