find-substring( a, b [,c])


Returns the index of the first occurrence of b in the text a. If c is set, the search will start at that position (starting with 1), otherwise at the beginning of the text.

Description of Parameters

Parameter

Description

a

Text.

b

Search text.

c

(optional) Start position. Default: 0.

Examples

Parameter a

Parameter b

Parameter c

Result

abcabc

c

3

abcabc

c

4

6

abcabc

a

1

1

abcabc

d

0