# Extract String

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/expressions/functions/string-functions/extract-string
>
> ExtractString returns the part of a delimited string at a given rank, using a separator, for example a field of a semicolon list.

This Function returns a string, extracted from the specified Source string, according to a Rank and a Separator.

### Parameters

* **Source string** <_string_> - String from where to extract the substring.
* **Rank** <_numeric_> - Order of the substring to extract.
* **Separator** <_string_> - String used as a separator in the Source string, to divide it.<br>

### Examples

* _Example 1_

ExtractString("001;Kalipso Studio;5000;Software", 2, ";")\
**Result** = Kalipso Studio

* _Example 2_

ExtractString("001;Kalipso Studio;5000;Software", 1, ":")\
**Result** = 001;Kalipso Studio;5000;Software

* _Example 3_

ExtractString("001;Kalipso Studio;5000;Software", 2, ":")\
**Result** =

:::info
If the Rank is higher than the number of parts, the result will be an empty string.
:::

:::info
If the Separator doesn’t exist and the specified Rank is 1, the result will be the specified Source string.
:::
