Pattern.Split Method

Definition

Overloads

Split(ICharSequence)

Splits the given input sequence around matches of this pattern.

Split(String)

Splits the given input sequence around matches of this pattern.

Split(ICharSequence, Int32)

Splits the given input sequence around matches of this pattern.

Split(String, Int32)

Splits the given input sequence around matches of this pattern.

Split(ICharSequence)

Splits the given input sequence around matches of this pattern.

[Android.Runtime.Register("split", "(Ljava/lang/CharSequence;)[Ljava/lang/String;", "")]
public string[] Split (Java.Lang.ICharSequence input);
[<Android.Runtime.Register("split", "(Ljava/lang/CharSequence;)[Ljava/lang/String;", "")>]
member this.Split : Java.Lang.ICharSequence -> string[]

Parameters

input
ICharSequence

The character sequence to be split

Returns

String[]

The array of strings computed by splitting the input around matches of this pattern

Attributes

Remarks

Java documentation for java.util.regex.Pattern.split(java.lang.CharSequence).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Split(String)

Splits the given input sequence around matches of this pattern.

public string[] Split (string input);
member this.Split : string -> string[]

Parameters

input
String

The character sequence to be split

Returns

String[]

The array of strings computed by splitting the input around matches of this pattern

Remarks

Java documentation for java.util.regex.Pattern.split(java.lang.CharSequence).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Split(ICharSequence, Int32)

Splits the given input sequence around matches of this pattern.

[Android.Runtime.Register("split", "(Ljava/lang/CharSequence;I)[Ljava/lang/String;", "")]
public string[] Split (Java.Lang.ICharSequence input, int limit);
[<Android.Runtime.Register("split", "(Ljava/lang/CharSequence;I)[Ljava/lang/String;", "")>]
member this.Split : Java.Lang.ICharSequence * int -> string[]

Parameters

input
ICharSequence

The character sequence to be split

limit
Int32

The result threshold, as described above

Returns

String[]

The array of strings computed by splitting the input around matches of this pattern

Attributes

Remarks

Java documentation for java.util.regex.Pattern.split(java.lang.CharSequence, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Split(String, Int32)

Splits the given input sequence around matches of this pattern.

public string[] Split (string input, int limit);
member this.Split : string * int -> string[]

Parameters

input
String

The character sequence to be split

limit
Int32

The result threshold, as described above

Returns

String[]

The array of strings computed by splitting the input around matches of this pattern

Remarks

Java documentation for java.util.regex.Pattern.split(java.lang.CharSequence, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to