contains
FEEL built-in function · FEEL string functions
contains(string, match)
Returns true if the string contains match anywhere, false otherwise.
contains takes a plain string, not a pattern, so a dot is just a dot. To test whether a list contains a value, use list contains instead.
Parameters
| Parameter | Type | Description |
|---|---|---|
| string | string | the string to search in |
| match | string | the substring to look for |
Examples
contains("foobar", "of")
false
Try it ↑
contains("foobar", "oba")
true
Try it ↑
Edge cases and null handling
Part of FEEL string functions: the rules all of them share, string concatenation, regex pitfalls and every function side by side.
Related functions
starts with · ends with · matches
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).