title: ReplaceText Usage in Apache NiFi
body: <p>I am trying to make use of the out-of-the-box processor ReplaceText in Apache NiFi to search inside a .dsv file, match all datetime formats and convert them into dates. I am not sure, however, how to configure the processor itself. I have tried to set my search value (Search Value Property) to something like this: </p>
  
  <pre><code>(0{0,1}[1-9])|(1/d)|(2/d)|(3[0-1])/(0{0,1}[1-9])|(1[0-2])/([1-9]/d):(0{0,1}/d)|(1/d)|(2[0-4]):(0{0,1}/d)|([1-5]/d)
  </code></pre>
  
  <p>Whereas my Replacement Value is regex1 that matches to ${time:format("yyyy-MM-dd'")} I have also set up another property named time that in turns matches to     <code>(0{0,1}[1-9])|(1/d)|(2/d)|(3[0-1])/(0{0,1}[1-9])|(1[0-2])/([1-9]/d):(0{0,1}/d)|(1/d)|(2[0-4]):(0{0,1}/d)|([1-5]/d)</code> </p>
  
  <p>This does not work and I have the feeling I am not using ReplaceText as it should be. Can you help? </p>
  
  <p>EDIT:</p>
  
  <p>I should have included that I am using the Replacement Strategy called Regex Replace and Evaluation Mode Entire text. </p>