Altova MapForce 2023 Professional Edition

Returns an integer value expressing the number of times that substr occurs in string.

mf-func-count-substring

 

Languages

Built-in, C++, C#, Java.

 

Parameters

Name

Type

Description

string

xs:string

The input string.

substr

xs:string

The sub-string to test for.

 

Example

The following mapping returns 2. This is the number of times that the pipe separator occurs within the input string id|name|email.

mf-func-count-substring-example

© 2016-2022 Altova GmbH