Searches a string for a specific pattern using a regular expression to do matching. Regular expression constructs can contain characters, character classes, and other classes and quantifiers. See for details about the Java API for Class Pattern.

This feature is only available with JVM 1.4 or later versions; this is the default version for Content Server version 7.0 and later.

Type and Usage


This function takes two parameters:

  • The first parameter is the string to match.

  • The second parameter is the expression.


The following example returns FALSE, because the string does not match the expression:


The following example returns TRUE because the wild cards are present. If standard wild cards such as the asterisk (*) were used instead of the dot-asterisk (.*) convention, the match would fail.

<$regexMatches("abcdef", ".*abc.*")$>

See Also