title: How can I extract a substring from a flowfile data in Nifi?
body: <p>I have a file that has data in txt format and each line in the file is 1 record.
  I am using splittext processor to split the flowfile in 1 record/file.</p>
  <p>I want to extract a substring from the record.I need to get a substring from start to nth index.</p>
  <pre><code>e.g.
  'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ012345678910'
  
  result flowfile for first 10 chars= abcdefghij
  
  </code></pre>
  <p><a href="https://i.stack.imgur.com/djo1q.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/djo1q.jpg" alt="flow" /></a></p>
  <p><a href="https://i.stack.imgur.com/YPXIU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YPXIU.jpg" alt="ExtractText" /></a> - I am using default settings in this except I tried adding an attribute (att1) as mentioned in some of the online forums. It's not helping.</p>
  <p>Please help,</p>