code: protected static boolean matchesOne(String str, Pattern... patterns) {
          for (Pattern pattern : patterns) {
              if (pattern.matcher(str).matches()) {
                  return true;
              }
          }
          return false;
      }
docs: Return <code>true</code> if the given <code>str</code> matches at least
  one of the given <code>patterns</code>.