Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

fn:matches

Matches a string with a pattern.


Syntax

fn:matches(string $string, string $pattern) => boolean
fn:matches(string $string, string $pattern, string $flags) => boolean

Top of page

Description

The function returns true if $string matches the regular expression supplied as $pattern as influenced by the value of $flags, if present; otherwise, it returns false. This function provides patternmatching functionality which might prove useful for users familiar with this concept. For searching in large data sets, however, it is recommended to rather use Tamino's own text retrieval facilities for better performance.

Top of page

Argument

$sequence

a string to be matched

$pattern

a 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