I am new to Apache NiFi and I am trying to solve the following scenario:
I have a file in the following format:
@RTOajvnodsnvodsvdsonbbvoiroi
uvdsoiuvoibvds
@RBCinbdiuvidsnb
Each line is terminated by a new line character. The first and last lines are the header and footer lines. I need to check whether the header and footer lines have @RTO and @RBC respectively or not. If yes, I would need to route the flow file.
I am trying to use the RouteOnContent processor to achieve this, using the regular expression (@RTO)[\\S\\s\\w\\W]*(@RBC)[\\S\\s\\w\\W]*. I tested it in Java and it works out, but it does not work in NiFi.
