Java.Util.Regex.Pattern.Split Method
Splits the given input at occurrences of this pattern.

Syntax

[Android.Runtime.Register("split", "(Ljava/lang/CharSequence;I)[Ljava/lang/String;", "")]
public string[] Split (Java.Lang.ICharSequence inputSeq, int limit)

Parameters

input
Documentation for this section has not yet been entered.
limit
Determines the maximum number of entries in the resulting array, and the treatment of trailing empty strings.
  • For n > 0, the resulting array contains at most n entries. If this is fewer than the number of matches, the final entry will contain all remaining input. For n < 0, the length of the resulting array is exactly the number of occurrences of the Pattern plus one for the text after the final separator. All entries are included. For n == 0, the result is as for n < 0, except trailing empty strings will not be returned. (Note that the case where the input is itself an empty string is special, as described above, and the limit parameter does not apply there.)

Returns

Documentation for this section has not yet been entered.

Remarks

Splits the given input at occurrences of this pattern.

If this pattern does not occur in the input, the result is an array containing the input (converted from a CharSequence to a String).

Otherwise, the limit parameter controls the contents of the returned array as described below.

[Android Documentation]

Requirements

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