saxonica.com

fn:replace

fn:replace(string? $input, string $pattern, string $replacement) → string?

Function signature

$input

xs:string ?

$pattern

xs:string

$replacement

xs:string

Result

xs:string ?

Replaces sequences of characters within a string that match a given regular expression

XPath 2.0 Specification

fn:replace(string? $input, string? $pattern, string? $replacement, string? $flags) → string?

Function signature

$input

xs:string ?

$pattern

xs:string

$replacement

xs:string

$flags

xs:string

Result

xs:string ?

Replaces sequences of characters within a string that match a given regular expression, specifying flags to control the way the regular expression is matched

XPath 2.0 Specification

Next