Overview
Use string functions to analyze and manipulate string values. Redpanda SQL supports these string related functions and operators:
String functions
| Function | Description |
|---|---|
Returns the number of characters in a string |
|
Makes string lowercase |
|
Makes string upper case |
|
Checks if a string starts with a specified substring |
|
Checks if a string ends with a specified substring |
|
Adds two or more strings together |
|
Extracts a substring from a string. |
|
Finds the position at which the substring starts within the string |
|
Matches a POSIX regular expression pattern to a string |
|
Substitutes new text for substrings that match POSIX regular expression patterns |
|
Finds and replace occurrences of a substring in a string |
|
Returns the position of the first occurrence of a substring in a string |
String operators
| Operator | Description |
|---|---|
text ~ text → boolean |
Returns |
text ~* text → boolean |
Returns |
text !~ text → boolean |
Returns |
text !~* text → boolean |
Returns |