Sponsored links: Algebra eBooks ### The Maxima on-line user's manual

Algebra Calculator

#### Search: #### 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("0320607860...

Calculate

##### substring

substring("PLAY Sam",4);

substring(%,4,6);

Calculate

##### substring

substring("5021078662...

substring(%,4,6);

Calculate

##### substring

substring("hello",4);

substring(%,4,6);

Calculate

##### substring

substring("07-26-2016...

substring(%,4,6);

Calculate

##### substring

substring("substring"...

Calculate

##### substring

substring("5021078662...

substring(%,4,6);

Calculate

##### substring

substring("12/19/2016...

Calculate

##### substring

substring("ABC.DAT",1...

Calculate

##### substring

substring("substring"...

Calculate 