Android.Text.TextUtils.Split Method
String.split() returns [''] when the string to be split is empty.

Syntax

[Android.Runtime.Register("split", "(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;", "")]
public static string[] Split (string text, string expression)

Parameters

text
the string to split
expression
the regular expression to match

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif expression or text is null

Remarks

String.split() returns [''] when the string to be split is empty. This returns []. This does not remove any empty strings from the result. For example split("a,", "," ) returns {"a", ""}.

[Android Documentation]

Requirements

Namespace: Android.Text
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1