For example, suppose you pull the following String from a user interface
This is a comment with a \n newline.
and you want to identify data like this for cleaning, perhaps through a manual review.
input_row.line =~ '.*(\\\\\\\\n).*'
This will send all input such as the sample String presented earlier to the Filter flow (versus the Reject flow). If you'd like to reverse the flows, wrap the JEXL expression in the not operator (! or not).
!(input_row.line =~ '.*(\\\\\\\\n).*')
The following job rejects one record because of the newline and allows two other records to continue on.
|Job Escaping the Backslash-N Character|