split

Summary

Divides the string into substrings, optionally separated by a delimiter.

Signatures

Click on a signature to select it and view its documentation.

Usage

public string[] split()

Returns

The original string stored in an array of size 1.

Description

When split is called with no arguments, an array of size 1 is created, with the array's only element being the original string.

Examples

import System;
1
2
string fox = "Fox";
Console.log(fox.split()); // [ "Fox" ]

Share

HTML | BBCode | Direct Link