All.
I have some data with some improper line breaks. I would like to search and replace any CR LF that is not followed by an 8 digit number and a pipe.
For example:
12345678|Text|Text CRLF
123.4567|Text|Text CRLF
Text|4567890|Text
This text above should change to:
12345678|Text|Text 123.4567|Text|Text Text|4567890|Text
I have tried the following:
\r\n([^[0-9]{8}\|])
Any help is very appreciated.
\R(?!\d{8}\|)
LEAVE EMPTY
Explanation:
\R # any kind of linebreak, you can use \r\n if you want to replace ONLY \r\n
(?! # negative lookahead, make we haven't after:
\d{8} # 8 digit
\| # a pipe
) # endd lookahead
Screenshot (before):
Screenshot (after):