Softanza
StartFrançais
Softanza
How-to · Strings

Check whether a string starts or ends with something

Softanza
Q("hello world").StartsWith("hello")
#--> TRUE

Q("hello world").EndsWith("world")
#--> TRUE
Output
1
1

ran: printed what the recipe promises

run on 2026-10-02 22:33 inside the library at commit 0e72e2e2c; the expression carrying the promise was printed for the run · The recipe on GitHub(opens in a new tab)

The methods

stzString.StartsWith · stzString.EndsWith

See also

Words for this task: starts with, begins with, prefix, ends with, finishes with, suffix