### The Maxima on-line user's manual

Algebra Calculator

#### Split

Function: split (<string>)

Function: split (<string>, <delim>)

Function: split (<string>, <delim>, <multiple>) Returns the list of all tokens in <string>. Each token is an unparsed string. `split` uses <delim> as delimiter. If <delim> is not given, the space character is the default delimiter. <multiple> is a boolean variable with `true` by default. Multiple delimiters are read as one. This is useful if tabs are saved as multiple space characters. If <multiple> is set to `false`, each delimiter is noted.

```          (%i1) split("1.2   2.3   3.4   4.5");
(%o1)                 [1.2, 2.3, 3.4, 4.5]
(%i2) split("first;;third;fourth",";",false);
(%o2)               [first, , third, fourth]```

There are also some inexact matches for `split`. Try `?? split` to see them.

```(%o1)                                true
(%i2) ```

### Related Examples

##### split

eq:x^2+2*x+1=0;

split("=","x=1");

Calculate

aaa:"10+13=10";

split(aaa,"=");

Calculate

Calculate

##### split

eq:x^2+2*x+1=0;

split("=","x=1 or x=2");

Calculate

##### split

h:split("a,B,ce",",");

h[1];

Calculate

aaa:"10+13=10";

split(aaa,"=");

Calculate

##### split

split("x=1","=");

Calculate

Calculate

##### split

h:split("a,B,ce");

h[1];

Calculate

aaa:"-7+13=10";

split(aaa,"=");

Calculate