matches

FEEL built-in function · String functions

matches(input, pattern, flags?)

Returns true if the input matches the regular expression. Flags: i for case-insensitive, s for dot-all, m for multi-line, x to ignore whitespace in the pattern.

Parameters

ParameterTypeDescription
inputstringthe string to test
patternstringregular expression (XPath syntax)
flagsstrings, m, i, x flags (optional)

Examples

matches("foobar", "^fo*b")
matches("FOO", "foo", "i")

Related functions

replace · contains

Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).