code: public static boolean hasNumberMacro(String pattern) {
  
          // check both macro variants
          return hasNumberMacro(
              pattern,
              "" + I_CmsMacroResolver.MACRO_DELIMITER + I_CmsMacroResolver.MACRO_START,
              "" + I_CmsMacroResolver.MACRO_END)
              || hasNumberMacro(
                  pattern,
                  "" + I_CmsMacroResolver.MACRO_DELIMITER_OLD + I_CmsMacroResolver.MACRO_START_OLD,
                  "" + I_CmsMacroResolver.MACRO_END_OLD);
      }
docs: Checks the given pattern for the number macro.<p>
  
  @param pattern the pattern to check
  
  @return <code>true</code> if the pattern contains the macro