code: @Deprecated
      public Pattern getPattern() {
          if (patterns != null && !patterns.isEmpty()) {
              return patterns.get(0);
          } else {
              return null;
          }
      }
docs: Get pattern for text parsing
  
  @return pattern definition object