substring static method

Filter substring(
  1. String attribute,
  2. String pattern
)

Creates a Filter that matches on a substring.

The pattern must be a String of the form 'attr=match', where attr is the attribute name and match is a value that has at least one * character. There can be wildcard * chararcters at the beginning, middle or end of match.

The match must not be a single * (e.g. 'foo=*' is not permitted). If such a filter is required, use the present filter instead.

Implementation

static Filter substring(String attribute, String pattern) =>
    SubstringFilter.fromPattern(attribute, pattern);