code: private static boolean hasNumberMacro(String pattern, String macroStart, String macroEnd) {
  
          String macro = I_CmsFileNameGenerator.MACRO_NUMBER;
          String macroPart = macroStart + macro + MACRO_NUMBER_DIGIT_SEPARATOR;
          int prefixIndex = pattern.indexOf(macroPart);
          if (prefixIndex >= 0) {
              // this macro contains an individual digit setting
              char n = pattern.charAt(prefixIndex + macroPart.length());
              macro = macro + MACRO_NUMBER_DIGIT_SEPARATOR + n;
          }
          return pattern.contains(macroStart + macro + macroEnd);
      }
docs: Checks the given pattern for the number macro.<p>
  
  @param pattern the pattern to check
  @param macroStart the macro start string
  @param macroEnd the macro end string
  
  @return <code>true</code> if the pattern contains the macro