contains

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Expression Functions > String Functions >

contains

Returns true if the first string contains at least one occurrence of substring, otherwise false.

 

Signature

contains(string:string, substring:string) -> Boolean

 

Parameters

Name

Type

Description

string

string

The input string.

substring

string

The string value to check for.

 

Examples

The following expression returns true:

 

contains('cat','a')

 

The following expression returns false:

 

contains('cat','b')


© 2019 Altova GmbH