Skip to content

split_part

relationalai.semantics.std.strings
split_part(
s: StringValue, separator: StringValue, index: IntegerValue
) -> Expression

Get the part of the string s at index after splitting by separator.

  • Expression - An Expression representing the string part at the specified index. Returns String.

Get a specific part of a split string:

>>> strings.split_part("my_email@mail.test", "@", 1)