A RESTful browser for eXist Java-Based Function Modules


http://exist-db.org/xquery/text
A module for text searching extension functions.

text:groups($text as xs:string, $regularexpression as xs:string) xs:string*
Tries to match the string in $text to the regular expression. Returns an empty sequence if the string does not match, or a sequence whose first item is the entire string, and whose following items are the matched groups.
$textThe text to filter
$regularexpressionThe regular expression to perform against the text

Returns an empty sequence if the string does not match, or a sequence whose first item is the entire string, and whose following items are the matched groups.

text:groups($text as xs:string, $regularexpression as xs:string, $flags as xs:string) xs:string*
Tries to match the string in $text to the regular expression, using the flags specified. Returns an empty sequence if the string does not match, or a sequence whose first item is the entire string, and whose following items are the matched groups.
$textThe text to filter
$regularexpressionThe regular expression to perform against the text
$flagsThe flags

Returns an empty sequence if the string does not match, or a sequence whose first item is the entire string, and whose following items are the matched groups.
Return to list of all modules