Altova MapForce 2025 Enterprise Edition

Returns Boolean true if the input string matches the regular expression defined by pattern; false otherwise. See also Regular expressions.

 

Note:When generating C++, C#, or Java code, the advanced features of the regular expression syntax might differ slightly. See the regex documentation of each language for more information.
mf-func-match-pattern

 

Languages

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

 

Parameters

Name

Type

Description

string

xs:string

The input string.

pattern

xs:string

The regular expression to match.

 

Example

The following mapping validates various person titles. Specifically, the mapping will output true for any of the following titles: Mr, Mrs, Mx, Ms, Miss.

mf-func-match-pattern-example

If the input string is other than any of the titles listed above, the mapping outputs false.

© 2018-2024 Altova GmbH