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

Apache Nifi: ExtractText and ReplaceText with Regex, how to configure them?

Apache Nifi: ExtractText and ReplaceText with Regex, how to configure them?

Explorer

Hi @ApacheNifi,

I've to extract a value (Value1) from header file (in the example) and then delete all of it lines in the file.

For example i've a txt file with:

 " <Header Begin><?xml version="1.0" encoding="UTF-8"?>
<header> <comments="Value1: x1_y1, Value2:xyz, Value3:x3">.....

....

...

...

<Header End>

Start file"

From processor in Nifi i ve thinking about:

1) ExtractText: to save attribute Value1 with it values (x1 and then y1)

2) ReplaceText: to delete all the header and leave only the file.

 

How can i configure this two processor to do this?

Thanks