strings
relationalai.semantics.std
String manipulation functions.
This module provides a comprehensive set of string operations including:
- String conversion and concatenation
- Case conversion and whitespace handling
- String splitting and substring extraction
- Distance metrics
- Pattern matching and searching
- Regular expression matching
Functions
Functions exposed by this module.
string()Convert a value to a string representation.
concat()Concatenate multiple strings together.
join()Join a sequence of strings with a separator.
contains()Check whether
substr is contained within s.startswith()Check whether
s starts with prefix.endswith()Check whether
s ends with suffix.len()Get the length of the string
s.levenshtein()Compute the Levenshtein distance between two strings.
like()Check whether
s matches the SQL LIKE pattern pattern.lower()Convert the string
s to lowercase.upper()Convert the string
s to uppercase.replace()Replace occurrences of
old with new in the string source.split()Split the string
s by separator, returning variables holding index and result.split_part()Get the part of the string
s at index after splitting by separator.strip()Strip whitespace from both ends of the string
s.substring()Get the substring of
s from start to stop (0-based, stop exclusive).regex_match()Check if the
value matches the given regex.