Skip to content

XQuery Regular Expressions

How to use XQuery regular expression functions such as matches(), replace(), and tokenize() for pattern matching, text replacement, and string splitting.

XQuery Regular Expressions

The following table lists the commonly used regular expression functions provided by XQuery.

Name Description
matches($input, $regex) It returns true if the input matches with the provided regular expression.
replace($input, $regex, $string) It replaces the matched input string with given string.
tokenize($input, $regex) It returns a sequence of items matching the regular expression.
Navigation