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

Algebra Calculator

#### Substring

Function: substring (<string>, <start>)

Function: substring (<string>, <start>, <end>) Returns the substring of <string> beginning at position <start> and ending at position <end>. The character at position <end> is not included. If <end> is not given, the substring contains the rest of the string. Note that the first character in <string> is in position 1.

```          (%i1) substring("substring",4);
(%o1)                        string
(%i2) substring(%,4,6);
(%o2)                          in```

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

### Related Examples

##### substring

substring("0123456789...

substring(%,1,14);

Calculate

##### substring

substring("Attribute:...

substring(%,4,6);

Calculate

##### substring

? substring (<a,b,...

Calculate

##### substring

substring("di-vraag-1...

substring(%,4,6);

Calculate

##### substring

substring("CONTROL 00...

substring(%,4,6);

Calculate

##### substring

substring("Dual Enrol...

Calculate

##### substring

substring("Dual Enrol...

Calculate

Calculate

##### substring

substring("http://tes...

substring(%,4,6);

Calculate

##### substring

substring("substring"...

substring(%,4,6);

Calculate