find-substring()

This function returns the index (starting with 1) of the first occurrence of b in text a, where c is the start position (starting at 1) from which the search is started.

Parameters


Parameter

Description

a

Text.

b

Search text.

c

(optional) Start position of the search (starting with 1). Default: 1.


Examples


Parameter a

Parameter b

Parameter c

Result

abcabc

c


3

abcabc

c

4

6

abcabc

a

1

1

abcabc

d


0