Provide at least one predicate and at most 250. Regular expressions are limited to 2048 bytes and do not support backreferences.
Arguments#
The array key.
The first index to search. Use "-" for the lowest possible index.
The last index to search. Use "+" for the highest possible index.
The following arguments are keyword-only. Each predicate accepts one pattern or a list of patterns.
Match the whole value.
Match a substring.
Match a glob pattern.
Match a regular expression.
How to combine predicates. Defaults to OR.
Match case-insensitively. Defaults to False.
Return index-value tuples instead of indexes. Defaults to False.
Maximum number of matches. If provided, it must be greater than zero.
Response#
Matching indexes, or index-value pairs when values are requested. TypeScript returns indexes as strings; Python returns integers. No matches returns an empty list.
See the server command reference for protocol details.