substring before

FEEL built-in function · String functions

substring before(string, match)

Returns everything before the first occurrence of match; the empty string if match does not occur.

Parameters

ParameterTypeDescription
stringstringthe source string
matchstringthe delimiter to search for

Examples

substring before("foobar", "bar")
substring before("foobar", "xyz")

Related functions

substring after · split

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