Support Questions
Find answers, ask questions, and share your expertise

replaceText processor in Java Minifi version 0.5

New Contributor

Hello,

I noticed an odd behavior for Replacetext processor in Java Minifi version 0.5

Processor: ReplaceText

Flow Content : <133>mq-otqfw1

Replacement Strategy : regex replace

Search Value : (^<(\d+)>.*$)

Replacement Value : ${'$2':divide(8)} ${'$2':mod(8)}

This config works in Nifi and all previous versions of Minifi, and the output is :

16 5

In Minifi version 0.5, the output always misses the second value:

16

please let me know if I miss anything in the syntax?

1 REPLY 1

@minaa_khalili 

I see the same behavior in my testing.  This was a known issue with the ReplaceText processor. The only way I can get it to work the same is to insert a line return in between the regex's.  Example image below:

Screen Shot 2019-12-17 at 2.24.47 PM.png

The issue was resolved in the next release of MiNiFi.