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.