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

    Returns

    The newly created filter function.

    Type Parameters

    • EntityT extends Entity<EntityT>

    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>

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