public static Predicate<String> ofRegex(final String pattern) {
        return Pattern.compile(pattern).asMatchPredicate();
    }
Creates a predicate that tests if the {@code pattern} matches a given
input string.

@see Pattern#asMatchPredicate()

@param pattern the matching regular expression
@return a matching predicate for the given pattern
jenetics.incubator/src/main/java/io/jenetics/incubator/beans/Filters.java