Thanks, will take a look at it!

On 04/12/2017 06:43 PM, Uwe Geercken wrote:
Hi,
you might want to use the ExecuteRuleEngine processor I wrote. It allows you to do very complex checks on the data and then also update it.
In other scenarios the MergeTemplate processor might work as well.
have a look at: https://github.com/uwegeercken/nifi_processors
rgds,
Uwe
*Gesendet:* Mittwoch, 12. April 2017 um 18:40 Uhr
*Von:* "Mika Borner" <[email protected]>
*An:* [email protected]
*Betreff:* ReplaceTextWithMapping how to regex
Hi all

I'm not sure I understand how the ReplaceTextWithMapping processor
works. Let's say my flowfile content looks like:

xyz key=value1 foo bar value1

My mapping file looks like:

value1 replacementvalue1

value2 replacementvalue2

I just want to replace the occurrence of "value1" only when it's
perpended with "key=". Therefore I'm writing the Regex "key=(\S+)" and a
"Matching Group" of 1.

This unfortunately doesn't work.

Can someone explain, what's wrong?

Thanks!

Mika>






Reply via email to