Filter berdasarkan kategori:
Menampilkan 24 dari 48 fungsi dalam kategori String
REGEXP_EXTRACT_ALL
Extracts all substrings that match the regular expression and returns them as an array.
ARRAY<STRING>REGEXP_INSTR
Returns the position (1-based) of the substring that matches the regular expression. Returns 0 if there is no match.
INT64REGEXP_REPLACE
Replaces all substrings that match the regular expression with a replacement string. Supports backreferences.
STRINGREGEXP_SUBSTR
Alias for REGEXP_EXTRACT. Extracts the substring that matches the regular expression.
STRINGREPEAT
Repeats a string n times. Useful for generating patterns.
STRINGREPLACE
Replaces all occurrences of a substring with a new string. Replacement is case-sensitive.
STRINGREVERSE
Reverses the order of characters in a string. The first character becomes the last and vice versa.
STRINGRIGHT
Extracts a specified number of characters from the right (end) of a string. A more readable shorthand for extracting trailing characters.
STRINGRPAD
Pads the right side of a string with characters until it reaches a specified length. Right padding.
STRINGRTRIM
Removes characters from the right side (end) of a string. Right trim for trailing characters.
STRINGSAFE_CONVERT_BYTES_TO_STRING
Safely converts a BYTES value to a STRING, replacing any invalid UTF-8 characters with the Unicode replacement character instead of raising an error.
STRINGSESSION_USER
Mengembalikan email address dari user yang menjalankan query.
STRINGSHA1
Menghitung SHA-1 hash dari input. Return BYTES.
BYTESSHA256
Menghitung SHA-256 hash dari input. Aman untuk kriptografi.
BYTESSHA512
Menghitung SHA-512 hash dari input. Hash paling kuat di keluarga SHA-2.
BYTESSPLIT
Splits a string into an array based on a delimiter. Very useful for parsing CSV-style data.
ARRAY<STRING>STARTS_WITH
Checks whether a string begins with a specified prefix. Returns a boolean.
BOOLSTRPOS
Finds the first position of a substring within a string. A simplified version of INSTR.
INT64SUBSTR
Extracts a portion of characters from a string starting at a specified position. An alias for SUBSTRING, highly useful for data extraction and parsing.
STRINGSUBSTRING
Extracts a portion of characters from a string. Identical to SUBSTR, available for standard SQL compatibility.
STRINGTO_CODE_POINTS
Converts a STRING or BYTES value into an array of code points (Unicode code points for STRING, values 0-255 for BYTES).
ARRAY<INT64>TRANSLATE
Replaces each character from the source character set with the corresponding character in the target character set. Character-level translation.
STRINGTRIM
Removes characters from the beginning and end of a string. By default, removes whitespace.
STRINGUPPER
Converts all characters in a string to uppercase. Supports Unicode characters.
STRING