Support Questions

Find answers, ask questions, and share your expertise

ReplaceText Processor in Nifi does not parse regex being passed through an Attribute

New Contributor

I am trying to replace flowfile content based on the passed attributes which has regex search value and the replacement value. Its working fine if I pass hard coded value in the search and replacement value property of the ReplaceText processor but when attributes are passed, it does not search based on the provided regex search value hence not providing the desired result.

Any suggestions or alternate solution to this please.

2 REPLIES 2

Super Mentor

@ansh_v 

Is it possible if you can share a simple example or screenshot of the configuration that way we can understand better. 

New Contributor

Screenshot has the property from ReplaceText processor where both attributes are passed via EvaluateJsonPath

 

ReplaceText processorReplaceText processor