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.
$text
The text to filter
$regularexpression
The 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.
$text
The text to filter
$regularexpression
The regular expression to perform against the text
$flags
The 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.