Softanza
StartFrançais
Softanza
How-to · Strings

Find where a substring occurs in a string

Softanza
Q("hello world hello").FindAll("hello")
#--> [ 1, 13 ]
Output
1
13

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.Find · stzString.FindFirst

See also

Words for this task: find, locate, search, position of, index of, where is, occurrences