I need to apply regular expression on file file attribute not on flow file content using ExtractText processor.
How can i achive this.
By using Extract Text processor we are able to work only on flowfile content.
Use UpdateAttribute processor as this processor meant for updating the values of Existing attributes (or) add new attributes based on the existing/new values.
We can also use NiFi expression language in UpdateAttribute processor for regex use replaceAll .. etc string manupulation functions and apply your regex on the attributes of the flowfile.
if the Answer helped to resolve your issue, Click on Accept button below to accept the answer, That would be great help to Community users to find solution quickly for these kind of issues.