string_part
Retrieves a part of a string.
Example
1
{{ 'Hello, world!' | string_part: ',', 2 }} => world
Input
Type | Parameter | Description | Required |
---|---|---|---|
string | string | The string to retrieve the part from. Comes before the | sign. | Required |
string | separator | The separator to split the string by | |
int | partNumber | The number of the part to retrieve |
Output
Type | Description | |
---|---|---|
string | null | The part of the string or null if the part does not exist |