logback-android/src/main/java/ch/qos/logback/core/util/StringCollectionUtil.java
public static void retainMatching(Collection<String> values,
      String... patterns) {
    retainMatching(values, Arrays.asList(patterns));
  }
public static void retainMatching(Collection<String> values,
      String... patterns) {
    retainMatching(values, Arrays.asList(patterns));
  }
public static void retainMatching ( Collection < String > values , String ... patterns ) { retainMatching ( values , Arrays . asList ( patterns ) ) ; }
Retains all values in the subject collection that are matched by
at least one of a collection of regular expressions.
<p>
This method is a convenience overload for
{@link #retainMatching(Collection, Collection)}.

@param values subject value collection
@param patterns patterns to match
Retains all values in the subject collection that are matched by at least one of a collection of regular expressions . <p > This method is a convenience overload for { @link #retainMatching ( Collection Collection ) } .