Search code examples
regexapache-nifi

Nifi: ReplaceTextWithMapping doesnt work as expected


I have been trying out examples in nifi and has been trying out the ReplaceTextWithMapping processor. The processor config as given below.

enter image description here

The mapping file is shown below.And I have used tab space between key and value.

enter image description here

I have followed this article here. And there is a lots of ID in the input file to the processor.There is no error on the logs. Can someone help me understand the problem.


Solution

  • The only workaround I could find was giving the values directly like (ID|POS). This does work. But still don't know why regex is not working.