title: Retrive textcontent by matching start word and end word
body: <p>I am getting text file with contents like below. I want to retrieve the data present between <code>start_word=Tax%</code> and <code>end_word="ErrorMessage"</code>.</p>
  
  <pre><code>ParsedText: 
  Tax%    
  63  2  .90  0.00  D INTENS  SH 80ML(48)     9.00%   9.00% 
  23  34013090    0.0     DS PURE WHIT 1 COG (24)     9.00%   9.00%   
  "ErrorMessage":"","ErrorDetails":""
  </code></pre>
  
  <p>After retreiving the output would be</p>
  
  <pre><code>63  2  .90  0.00  D INTENS  SH 80ML(48)     9.00%   9.00% 
  23  34013090    0.0     DS PURE WHIT 1 COG (24)     9.00%   9.00%   
  </code></pre>
  
  <p>Please help.</p>
  
  <p>I am using camel to read the text then i want to retrive the data to process further as per my requiement.</p>
  
  <pre><code>import org.apache.camel.Exchange;
  import org.apache.camel.Processor;
  
  public class DataExtractor implements Processor{
  
      @Override
      public void process(Exchange exchange) throws Exception {
          String textContent=(String) exchange.getIn().getBody();
          System.out.println("TextContents &gt;&gt;&gt;&gt;&gt;&gt;"+textContent);
  
      }
  </code></pre>
  
  <p>}</p>
  
  <p>In the text content I am getting the content that i have given above.I need help regarding retreiving the the data in java.</p>