home contribute faq download

FunctX XSLT Functions

fn:regex-group

The current group

Google
Webxsltfunctions.com

Description

The fn:regex-group function returns a substring that matches a parenthesized group in a regular expression, when evaluating an xsl:matching-substring. Note: this is an XSLT-only function; it is not available in XQuery or XPath.

Arguments and Return Type

NameType
$group-number xs:integer
return value xs:string

Examples

XSLT ExampleResults
See the example from the XSLT 2.0 recommendation.

History

Published OnLast UpdatedContributor(s)
2007-03-172007-03-17W3C, XSLT 2.0, http://www.w3.org/TR/xslt20/
Need XSLT Help?
D A T Y P I C
Training | Consulting | Development

XQuery by Priscilla WalmsleyGet the book!
XQuery by Priscilla Walmsley