Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

fn:replace

Replaces bits of a string using patternmatching.


Syntax

fn:replace(string $input, string $pattern, string $replacement) => string
fn:matches(string $input, string $pattern, string $replacement, string $flags) => string

Top of page

Description

The function returns the input string wherein all occurrences of $pattern are replaced by $replacement influenced by the value of $flags, if present.

Top of page

Argument

$input

a string to be modified

$pattern

a pattern

$replacement

a string to be inserted

$flags

modifiers for patternmatching

Top of page

Example

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page