StrBefore

Qubes 9.0 Extracts string characters before a delimiter.

Syntax

StrBefore(string, delimiter)
string = character string to extract from
delimiter = delimiter string or character

Remarks

If delimiter is not present, then it returns the whole string.

See also: StrAfter to extract after a delimiter, and Left to extract a fixed number of characters.

Examples

StrBefore("hello world", " ") = "hello"
StrBefore("hello world", "z") = "hello world"

Classification

Strings