I have a textfile (GetFile-processor) with Unix-style Newline (\n), but need a Windows-style Carriage-Return+LineFeed CRLF (\r\n) in my FlowFile
My ReplaceText-Processor is working
Search value: ((?<!\x0d)\x0a|\x0d(?!\x0a))
Replacement value: ${literal(''):replaceFirst('','\r')}${literal(''):replaceFirst('','\n')}
Question: my RegEx seems to me very complex Do you know an easier way to convert in a FlowFile the \n to \r\n?
Have a nice weekend
Frank
\n? - daggett