count-substring()

This function returns the number of occurrences of search text b in text a.

Parameters


Parameter

Description

a

Text.

b

Search text.

Examples


Parameter a

Parameter b

Result

abcdecfgc

c

3

abcdecfgc

abc

1

abcdecfgc

x

0