code: private static boolean isFormattingInformation(String formatString, String delimiter) {
  
          String[] formatStrings = formatString.split(delimiter);
          for (int i = 0; i < formatStrings.length; i++) {
              if (!formatStrings[i].trim().matches("[lcr]")) {
                  return false;
              }
          }
          return true;
      }
docs: Tests if the given string is a <code>delimiter</code> separated list of formatting information.<p>
  
  @param formatString the string to check
  @param delimiter the list separators
  
  @return true if the string is a <code>delimiter</code> separated list of Formatting Information