Given a flowfile of text, I'm trying to extract certain lines from it using regex and pass ONLY those lines onto the next processors.
For example, if I have the text:
cat dog fish dog bird
I only want to extract the lines with "dog", then put those lines into their own flowfile that would look like:
dog dog
I understand that using an ExtractText processor is probably my best bet in this case, but I'm not sure of how this processor is used correctly. I've read multiple questions where the answer describes how to grab specific text and store them into attributes, but the answers always stop there. I need to know how I can then use those attributes and pass them to another processor, and how to make that processor only use those attributes that ExtractText caught.
TL;DR: How do I use ExtractText to grab specific lines, then pass those lines to another processor, and then how do I use that processor to spit out the previously grabbed lines?