XQuery Regular Expressions
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. |
note
XSLT 2.0, XPath 2.0, and XQuery 1.0, share the same functions library.
A complete list of regular expression functions is available at XSL Functions