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
| Parameter | Type | Description |
|---|---|---|
| input | string | the string to test |
| pattern | string | regular expression (XPath syntax) |
| flags | string | s, m, i, x flags (optional) |
Examples
matches("foobar", "^fo*b")
true
Try it →
matches("FOO", "foo", "i")
true
Try it →
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).