String search

x ss y     ss[x;y]

Where

returns an int vector of position/s within x of substrings that match pattern y.

q)"We the people of the United States" ss "the"
3 17

q)s:"toronto ontario"
q)s ss "ont"
3 8
q)s ss "[ir]o"
2 13
q)s ss "t?r"
0 10