• Build a filter function to test whether a string matches a pattern. Evaluates to boolean.

    Type Parameters

    Parameters

    • str: string | Field<EntityT, boolean, boolean> | StringFilterFunction<EntityT>

      The string to get the index from. This can either be a string, a reference to a field or another filter function.

    • regex: string

      The pattern to test against. This should be a regular expression as a string.

    Returns BooleanFilterFunction<EntityT>

    The newly created filter function.

    Copyright Ⓒ 2024 SAP SE or an SAP affiliate company. All rights reserved.