Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

fn:tokenize

Tokenizes a string according to a pattern.


Syntax

fn:tokenize(string $string, string $pattern) => string*
fn:tokenize(string $string, string $pattern, string $flags) => string*

Top of page

Description

This function breaks the input $string into a sequence of strings, treating any substring that matches $pattern as a separator. The separators themselves are not returned. The $flag argument is interpreted in the same way as for the fn:matches() function.

Top of page

Argument

$string

a string to be tokenized

$pattern

a separator pattern

$flags

modifiers for patternmatching

Top of page

Example

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page