XQuery tokenize Function
The tokenize function returns a sequence of items matching the regular expression.
Syntax
tokenize($input, $regex)Input Parameters
$inputis the input string.$regexis the regular expression.
Example
let $input := 'Chapter 1 ... Chapter 2... Section 1.1'
return ( tokenize($input, 'C'))hapter 1 ...
hapter 2... Section 1.1