SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
Conditions of Use
Using XSLT 2.0
Using XQuery
Handling Source Documents
XML Schema Processing
The XPath API
Standards Conformance
Extensibility
Saxon Extensions
Sample Saxon Applications
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
Function Library
XSLT Patterns

# 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