count-substring(a, b)


Returns the number of occurrences of search text b in text a.

Description of Parameters


Parameter

Description

a

Text.

b

Search text.

Examples


Parameter a

Parameter b

Result

abcdecfgc

c

3

abcdecfgc

abc

1

abcdecfgc

x

0