code: public static Predicate<String> matchesRegex(final String regex) {
  		final Pattern pattern = Pattern.compile(regex);
  		return matchesRegex(pattern);
  	}
docs: Creates a {@link Predicate} that returns {@code true} for any string that matches the
  specified regular expression.
  
  @param regex
  The pattern
  @return {@code true} for any string that matches its given regular expression