split_part
relationalai.semantics.std.strings
split_part( s: StringValue, separator: StringValue, index: IntegerValue) -> ExpressionGet the part of the string s at index after splitting by separator.
Parameters
Section titled “Parameters”
(sStringValue) - The string to split.
(separatorStringValue) - The separator to split by.
(indexIntegerValue) - The index of the part to retrieve (0-based).
Returns
Section titled “Returns”Expression- AnExpressionrepresenting the string part at the specified index. ReturnsString.
Examples
Section titled “Examples”Get a specific part of a split string:
>>> strings.split_part("my_email@mail.test", "@", 1)