Android.Text.TextUtils.Split Method
Splits a string on a pattern.

Syntax

[Android.Runtime.Register("split", "(Ljava/lang/String;Ljava/util/regex/Pattern;)[Ljava/lang/String;", "")]
public static string[] Split (string text, Java.Util.Regex.Pattern pattern)

Parameters

text
the string to split
pattern
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

Splits a string on a pattern. String.split() returns [''] when the string to be split is empty. This returns []. This does not remove any empty strings from the result.

[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