3) include a conditional whereby if and only if the last part of a line has the form of , then include a \n at the end of it.
The reason for this script has to do with some data cleaning and wrangling on a dataset that shows the following issues:
a) text (often long) cuts across lines via \tab or line feed. This can happen before a full stop, but it is a not consistent behaviour.
I have come up with the following code:
Although it does remove \tab and correctly replaced the delimiters, the conditional seems to go wrong and all the content is piped into a long single line. This is not what I was aiming for because I will later on need to split the flowfile line by line. Can you help? Is there anything particularly wrong in my code?