code: public static Predicate regex(final ExchangeAttribute attribute, final String pattern, boolean requireFullMatch) {
          return new RegularExpressionPredicate(pattern, attribute, requireFullMatch);
      }
docs: Creates a predicate that matches the given attribute against a regex.
  @param requireFullMatch If a full match is required in order to return true.
  @param attribute The attribute to check against.
  @param pattern The pattern to look for.