ends with
FEEL built-in function · FEEL string functions
ends with(string, match)
Returns true if the string ends with match.
Parameters
| Parameter | Type | Description |
|---|---|---|
| string | string | the string to test |
| match | string | the expected suffix |
Examples
ends with("foobar", "r")
true
Try it ↑
Edge cases and null handling
ends with("file.PDF", ".pdf")
false
Try it ↑
Case-sensitive, so check file extensions with a lower-cased name.
ends with(lower case("file.PDF"), ".pdf")
true
Try it ↑
Part of FEEL string functions: the rules all of them share, string concatenation, regex pitfalls and every function side by side.
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).