Altova MapForce 2025 Basic Edition

This function takes an input string, a regular expression, and a replacement string as arguments. It replaces all matches of the regular expression in the input string with the replacement string. If the regular expression matches two overlapping strings in the input string, only the first match is replaced.

mf-func-xpath2-replace

 

Languages

XQuery, XSLT 2.0, XSLT 3.0.

 

Parameters

Name

Type

Description

input

xs:string

The input string.

pattern

xs:string

The regular expression to match, see Regular Expressions.

replacement

xs:string

The replacement string.

flags

xs:string

Optional argument that influences the matching. This argument is used in the same way as the flags argument of the matches function.

© 2018-2024 Altova GmbH