---
title: "substring_grapheme function in Strata | Oplema"
description: "Take visible characters from text by start and end position, keeping multi-part emoji whole. Use it in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/substring-grapheme"
updated: "2026-11-04"
---

# 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](https://oplema.com/docs/strata/prep/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.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | 🤦🏽‍♀️🦆 |

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

## Related functions

[substring

Extract part of text, starting at a character position where 1 is the first character. Without a length, it continues to the end of the text.

](https://oplema.com/docs/strata/functions/substring)[array\_extract

Get one item from a list or one character from text by position, where 1 is the first. For a struct, choose a field by name, or by position in an unnamed struct.

](https://oplema.com/docs/strata/functions/array-extract)[ascii

Return the Unicode number of the first character in text.

](https://oplema.com/docs/strata/functions/ascii)[translate

Swap individual characters: each character in the second argument becomes the character at the same position in the third. Characters with no counterpart are removed.

](https://oplema.com/docs/strata/functions/translate)

[Browse text](https://oplema.com/docs/strata/functions#text) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/text.html#substring_graphemestring-start-length)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
