split

Splits a string into an array by a given seperator

  1. string[] split(string s, string sep)
  2. string[] split(string s, string sep)
    @safe
    string[]
    split
    (
    string s
    ,
    string sep
    )

Parameters

s string

The string to be splitted

sep string

The seperator specifying where to split

Return Value

Type: string[]

An array of the elements from the splitted string

Meta