substring
relationalai.semantics.std.strings
substring(s: StringValue, start: IntegerValue, stop: IntegerValue) -> ExpressionGet the substring of s from start to stop (0-based, stop exclusive).
Parameters
Section titled “Parameters”
(sStringValue) - The string to extract from.
(startIntegerValue) - The starting index (0-based, inclusive).
(stopIntegerValue) - The ending index (0-based, exclusive).
Returns
Section titled “Returns”Expression- AnExpressionrepresenting the extracted substring. ReturnsString.
Examples
Section titled “Examples”Extract a substring from a string:
>>> strings.substring(Person.name, 0, 3)>>> strings.substring("example", 2, 5)