title: Validating a string length using Apache-NiFi
body: <p>In my flowfile, I need to verify a column content has certain number of strings. If not, I will replace it with a text. To implement this, I have used <code>UpdateRecord</code> processor with :</p>
  
  <pre><code>Record Reader : CSV
  Record Writter : CSV
  Replacement Value strategy : Literal Values
  
  /my_column : ${field.value:replaceAll('[a-z]+|[a-z]+','Wrong')
                :replaceAll(${field.value:length():le(8)},'Undefined')}
  </code></pre>
  
  <p>I have also used <code>:replaceAll(${field.value:count():le(8)},'Undefined')</code></p>
  
  <p>But none of them worked as expected. It didnt replace wrong number of strings with <code>Undefined</code></p>
  
  <p>Input :</p>
  
  <pre><code>id,name,my_column
  1,sachith,9403039409445
  2,nalaka,rwed222
  3,muhandiram,45544
  </code></pre>
  
  <p>Expected :</p>
  
  <pre><code>id,name,my_column
  1,sachith,9403039409445
  2,nalaka,Wrong
  3,muhandiram,Undefined
  </code></pre>
  
  <p>PS : Added sample input and output after first comment.</p>