--- title: "Ends with" slug: "core-ends-with-matcher" updated: 2026-04-27T08:53:27Z published: 2026-04-27T08:53:27Z canonical: "docs.lobstersoftware.com/core-ends-with-matcher" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Ends with *See also:* [Starts with](/v1/docs/en/core-starts-with-matcher), [Contains](/v1/docs/en/core-contains-matcher) ![images/download/attachments/201666767/image-2025-4-1_15-32-19-version-1-modificationdate-1743514339376-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-1_15-32-19-version-1-modificationdate-1743514339376-api-v2.png) The [Ends with](/v1/docs/en/core-ends-with-matcher) compare type checks if the text (`String`) given as the *Check value* (value configuration on the left) ends exactly with the string (`String`) defined as the *Compare value* (value configuration on the right). - The screenshot above uses static text value resolvers (see [Static values](/v1/docs/en/core-literal-value-resolver)) with the texts "Check value" and "Compare value" to illustrate the interaction of the components. **NOTE:** - The text comparison is case sensitive. - There is no automatic conversion of unsuitable values to text (`String`). When required, the [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) value resolver or a suitable value resolver from the [String processing](/v1/docs/en/orchestration-resolvers-text) category can be used to convert another data type into a string. Special cases: - The check is considered failed if at least one of the value configurations (*Check value*, C*ompare value*) does not return a `String`. - Since "no value" (`$null`) is also not a string, a check like (`$null`) [Ends with](/v1/docs/en/core-ends-with-matcher) (`$null`) is considered failed. - If the *Check value* and the *Compare value* match completely, an [Ends with](/v1/docs/en/core-ends-with-matcher) comparison is considered passed. - An empty string (`""`) can be used as a *Check value* and as a *Compare value*. A check with `""` as a *Compare value* will always pass if the *Check value* is a `String`. Specific examples: | Check value (JSON notation) | Compare value (JSON notation) | Check result | Comments | | --- | --- | --- | --- | | "321.99" | "321.99" | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(45).svg) true | *Check value* [Ends with](/v1/docs/en/core-ends-with-matcher) the *Compare value* | | `"321.99"` | `"99"` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(45).svg) true | *Check value* [Ends with](/v1/docs/en/core-ends-with-matcher) the *Compare value* | | `"321.99"` | `"98"` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(39).svg) false | *Check value does not end with the Compare value* | | `""` | `"99"` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(39).svg) false | *Check value does not end with the Compare value* | | `321.99` | `"99"` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(39).svg) false | *Check value* is not a `String` | | `$null` | `"99"` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(39).svg) false | *Check value* is not a `String` | | `"321.99"` | `99` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(39).svg) false | *Compare value* is not a `String` | | `"321.99"` | `$null` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(39).svg) false | *Compare value* is not a `String` | | `"321.99"` | `""` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(45).svg) true | *Check value* [Ends with](/v1/docs/en/core-ends-with-matcher) the *Compare value* | | `$null` | `$null` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(39).svg) false | *Check value is not a* `String`*Compare value is not a* `String` | | `""` | `""` | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(45).svg) true | *Check value* [Ends with](/v1/docs/en/core-ends-with-matcher) the *Compare value* | ## Configuration The value configurations for *Check value* (left) and *Compare value* (right) are not optional for the [Ends with](/v1/docs/en/core-ends-with-matcher) compare type. Both value configurations must return strings (`String`) at runtime, otherwise the [Entity property rule](/v1/docs/en/core-entity-property-rule) is considered failed. ## Examples ### Check TLD of an e-mail address An association criterion (see [Association criteria](/v1/docs/en/core-association-criteria)) should be considered to have been passed precisely when the e-mail address stored for a guest user refers to the top-level domain `cn` for China. Configuration: | - Within an AND conjunction, a [Check type](/v1/docs/en/core-check-type-rule) first ensures that a guest user account (see [Guest users](/v1/docs/en/base-guest-user)) is present as the *reference object*. - The [Entity property rule](/v1/docs/en/core-entity-property-rule) with the [Ends with](/v1/docs/en/core-ends-with-matcher) compare type is evaluated only in the context of a guest user account: - As a *Check value* (left), an [Object property](/v1/docs/en/core-property-resolver) value resolver accesses the "E-mail address" (`emailAddress`) text field in the guest user account, which returns a `String` as a required field. The concatenated [Lower case](/v1/docs/en/core-to-lower-case-resolver) value resolver converts any uppercase letters that may be contained in the e-mail address to the corresponding lowercase letters for comparison purposes. This makes the [Ends with](/v1/docs/en/core-ends-with-matcher) comparison here "case insensitive". - The string for the *Compare value* (right) is stored as static text (see [Static values](/v1/docs/en/core-literal-value-resolver)) directly in the configuration. | ![images/download/attachments/201666767/image-2025-4-1_15-43-9-version-1-modificationdate-1743514989042-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-1_15-43-9-version-1-modificationdate-1743514989042-api-v2.png) | | --- | --- | ### Check whether each line of text was terminated with a semicolon The **Validating rule** of an event handling (see [Event handling](/v1/docs/en/administration-designer-workflow-action-event-handler-configuration)) is intended to ensure that event actions are executed only if a list of strings, each of which ends with a semicolon (`;`), is passed as *input value*. Configuration: | The AND conjunction shown on the right is configured as the **Validating rule**: - The [Check type](/v1/docs/en/core-check-type-rule) here declares that the *input value* should be a list of text values (`String[]`). At runtime, the lines of the text being checked are provided in this form. - The [Entity property rule](/v1/docs/en/core-entity-property-rule) below should be considered passed if there is no row that does not satisfy the "[Ends with](/v1/docs/en/core-ends-with-matcher);" format rule: - The actual checking of the rows is done by another [Entity property rule](/v1/docs/en/core-entity-property-rule) that uses a [Rule list resolver](/v1/docs/en/core-list-rule-resolver) as a criteria. This uses the text of the line as a *Check value* via a [Right trim](/v1/docs/en/core-right-trim-resolver) value resolver in such a way that it removes any *whitespace* characters that are at the end of the row. - The semicolon (;), which is defined as static text (see [Static values](/v1/docs/en/core-literal-value-resolver)), serves as a *Compare value* for the [Ends with](/v1/docs/en/core-ends-with-matcher) comparison negated by [not (Matcher)](/v1/docs/en/core-not-matcher). - Since the **Resolve all as list** option is not checked, the [Rule list resolver](/v1/docs/en/core-list-rule-resolver) terminates the evaluation when it first finds a row that is not "terminated" with a semicolon and returns its text. If no such row exists, the return value is "no value" (`$null`). - The return value from the [Rule list resolver](/v1/docs/en/core-list-rule-resolver) is evaluated by the outer [Entity property rule](/v1/docs/en/core-entity-property-rule) per the [Is empty](/v1/docs/en/core-is-empty-matcher) compare type, so the **Validating rule** returns `true` overall if no row is disputed. | ![images/download/attachments/201666767/image-2025-4-1_15-41-31-version-1-modificationdate-1743514891746-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-1_15-41-31-version-1-modificationdate-1743514891746-api-v2.png) | | --- | --- | **NOTE:** It may be necessary to exclude the special case that the list in the *input value* is completely empty (`[]`) by an additional rule in the AND conjunction. Because then the [Rule list resolver](/v1/docs/en/core-list-rule-resolver) also returns "no value" (`$null`) and the **Validating rule** is considered to be fulfilled because no row is disputed.