fn:regex-group

Returns the contents of the substring that matched the n'th subexpression in a regular expression processed using xsl:analyze-string.

regex-group($group-number as xs:integer) ➔ xs:string

Arguments

 

$group-number

xs:integer

Integer identifying the group

Result

xs:string

Namespace

http://www.w3.org/2005/xpath-functions

Links to W3C specifications

XSLT 3.0 Specification

Saxon availability

Available in XSLT 2.0 and later versions. Available in all Saxon editions.