Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex DataLens
    • Overview
    • Formula syntax
      • All Functions
        • Overview
        • ASCII
        • CHAR
        • CONCAT
        • CONTAINS
        • ENDSWITH
        • FIND
        • ICONTAINS
        • IENDSWITH
        • ISTARTSWITH
        • LEFT
        • LEN
        • LOWER
        • LTRIM
        • REGEXP_EXTRACT
        • REGEXP_EXTRACT_ALL
        • REGEXP_EXTRACT_NTH
        • REGEXP_MATCH
        • REGEXP_REPLACE
        • REPLACE
        • RIGHT
        • RTRIM
        • SPACE
        • SPLIT
        • STARTSWITH
        • SUBSTR
        • TRIM
        • UPPER
        • UTF8
      • Function Availability
    • Parameters
  • Audit Trails events

In this article:

  • ASCII
  • CHAR
  • CONCAT
  • CONTAINS
  • ENDSWITH
  • FIND
  • ICONTAINS
  • IENDSWITH
  • ISTARTSWITH
  • LEFT
  • LEN
  • LOWER
  • LTRIM
  • REGEXP_EXTRACT
  • REGEXP_EXTRACT_ALL
  • REGEXP_EXTRACT_NTH
  • REGEXP_MATCH
  • REGEXP_REPLACE
  • REPLACE
  • RIGHT
  • RTRIM
  • SPACE
  • SPLIT
  • STARTSWITH
  • SUBSTR
  • TRIM
  • UPPER
  • UTF8
  1. Calculated fields
  2. Function reference
  3. String functions
  4. Overview

String functions

Written by
Yandex Cloud
Updated at July 15, 2024
  • ASCII
  • CHAR
  • CONCAT
  • CONTAINS
  • ENDSWITH
  • FIND
  • ICONTAINS
  • IENDSWITH
  • ISTARTSWITH
  • LEFT
  • LEN
  • LOWER
  • LTRIM
  • REGEXP_EXTRACT
  • REGEXP_EXTRACT_ALL
  • REGEXP_EXTRACT_NTH
  • REGEXP_MATCH
  • REGEXP_REPLACE
  • REPLACE
  • RIGHT
  • RTRIM
  • SPACE
  • SPLIT
  • STARTSWITH
  • SUBSTR
  • TRIM
  • UPPER
  • UTF8

ASCIIASCII

Syntax:ASCII( string )

Returns the numeric representation of the first character of the string.

CHARCHAR

Syntax:CHAR( string )

Converts the numeric representation of an ASCII character to a value.

CONCATCONCAT

Syntax:CONCAT( arg_1, arg_2, arg_3 [ , ... ] )

Merges any number of strings. When non-string types are used, they're converted to strings and then merged.

CONTAINSCONTAINS

Syntax:CONTAINS( string, substring )

Returns TRUE if string contains substring. For case-insensitive searches, see ICONTAINS.

ENDSWITHENDSWITH

Syntax:ENDSWITH( string, substring )

Returns TRUE if string ends in substring. For case-insensitive searches, see IENDSWITH.

FINDFIND

Syntax:FIND( string, substring [ , start_index ] )

Returns the index of the position of the first character of the substring substring in the string string.

If the start_index option is specified, the search starts from the specified position.

ICONTAINSICONTAINS

Syntax:ICONTAINS( string, substring )

Case-insensitive version of CONTAINS. Returns TRUE if string contains substring.

IENDSWITHIENDSWITH

Syntax:IENDSWITH( string, substring )

Case-insensitive version of ENDSWITH. Returns TRUE if string ends in substring.

ISTARTSWITHISTARTSWITH

Syntax:ISTARTSWITH( string, substring )

Case-insensitive version of STARTSWITH. Returns TRUE if string starts with substring.

LEFTLEFT

Syntax:LEFT( string, number )

Returns a string that contains the number of characters specified in number from the beginning of the string string.

LENLEN

Syntax:LEN( value )

Returns the number of characters in the string or items in array value.

LOWERLOWER

Syntax:LOWER( string )

Returns the string string in lowercase.

LTRIMLTRIM

Syntax:LTRIM( string )

Returns the string string without spaces at the beginning of the string.

REGEXP_EXTRACTREGEXP_EXTRACT

Syntax:REGEXP_EXTRACT( string, pattern )

Returns the substring string that matches the regular expression pattern.

REGEXP_EXTRACT_ALLREGEXP_EXTRACT_ALL

Syntax:REGEXP_EXTRACT_ALL( string, pattern )

Returns all string substrings matching the pattern regex. For regexes with subgroups, it only works for the first subgroup.

REGEXP_EXTRACT_NTHREGEXP_EXTRACT_NTH

Syntax:REGEXP_EXTRACT_NTH( string, pattern, match_index )

Returns a substring string that matches the regular expression pattern pattern starting from the specified index.

REGEXP_MATCHREGEXP_MATCH

Syntax:REGEXP_MATCH( string, pattern )

Returns 'TRUE' if the string string has a substring that matches the regular expression pattern pattern.

REGEXP_REPLACEREGEXP_REPLACE

Syntax:REGEXP_REPLACE( string, pattern, replace_with )

Searches for a substring in the string string using the regular expression pattern pattern and replaces it with the string replace_with.

If the substring is not found, the string is not changed.

REPLACEREPLACE

Syntax:REPLACE( string, substring, replace_with )

Searches for the substring substring in the string string and replaces it with the string replace_with.

If the substring is not found, the string is not changed.

RIGHTRIGHT

Syntax:RIGHT( string, number )

Returns a string that contains the number of characters specified in number from the end of the string string.

RTRIMRTRIM

Syntax:RTRIM( string )

Returns the string string without spaces at the end of the string.

SPACESPACE

Syntax:SPACE( value )

Returns a string with the specified number of spaces.

SPLITSPLIT

Syntax:SPLIT( orig_string [ , delimiter [ , part_index ] ] )

It splits orig_string into a sequence of substrings using the delimiter character as separator and returns the substring whose number is equal to the part_index parameter. By default, the delimiting character is comma. If part_index is negative, the substring to return is counted from the end of orig_string. If the number of substrings is less than the part_index absolute value, the function returns an empty string. If part_index was not provided, the function returns an array of the substrings (only for ClickHouse, PostgreSQL sources).

STARTSWITHSTARTSWITH

Syntax:STARTSWITH( string, substring )

Returns TRUE if string starts with substring. For case-insensitive searches, see ISTARTSWITH.

SUBSTRSUBSTR

Syntax:SUBSTR( string, from_index [ , length ] )

Returns the substring string starting from the index from_index. The numbering starts with one.

If an additional argument length is specified, a substring of the specified length is returned.

TRIMTRIM

Syntax:TRIM( string )

Returns the string string without spaces at the beginning or end of the string.

UPPERUPPER

Syntax:UPPER( string )

Returns the string string in uppercase.

UTF8UTF8

Syntax:UTF8( string, old_encoding )

Converts the string string encoding to UTF8.

Was the article helpful?

Previous
Subtraction (-)
Next
ASCII
Yandex project
© 2025 Yandex.Cloud LLC