Documentation

    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) β†’ VARCHAR

    The 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.

    Browse textDuckDB documentation

    Function metadata from DuckDB, used under the MIT license.