substring_grapheme
Extracts substring starting from grapheme clusters start up to the end of the string. If optional argument length is set, extracts a substring of length grapheme clusters instead. Note that a start value of 1 refers to the first character of the string.
Try an expression
In Formula, enter the expression and set Output type to VARCHAR.
Expression
substring_grapheme('π¦π€¦πΌββοΈπ€¦π½ββοΈπ¦', 3)Result
'π€¦π½ββοΈπ¦'To use your own data, replace the example values with column names. Keep format strings and other options as written.
Arguments and types
substring_grapheme(string, start, length)- string
- Text
- start
- Number
- length
- Number
Supported signatures (2)
substring_grapheme(string: VARCHAR, start: BIGINT) β VARCHAR
substring_grapheme(string: VARCHAR, start: BIGINT, length: BIGINT) β VARCHARThe result type can depend on the input types. See DuckDB for the full argument rules.
Things to know
If the first argument is missing, the result is NULL.
Function metadata from DuckDB, used under the MIT license.