code: private Pattern findingCompositePattern() {
          String startingWords = concatenateInitialStartingWords();
          return compile(keywords().composite() + "(.*?)\\s*(?:\n\\s*" + keywords().priority() + "\\s*(\\d+)\\s*)?"
                  + startingWords + ".*", DOTALL);
      }
docs: Regex Patterns