Monday, December 11, 2017

Re: pattern for substitution including linefeed and carriage return

Hi Erhy,

On Sunday, 2017-12-10 08:08:36 -0800, Erhy wrote:

> I got an CSV file in which some items have more lines
> and I want to delete them. This items have also textmarkers "
> e.g.
> 30.11.2017;"Name";"Legend
> for name
> is not found";"New York";

As a side note, you are aware that such multi-line field content is
valid in CSV if enquoted? If for some reason the processing software
isn't capable to cope with multi-line content I'd rather suggest to only
replace the embedded newlines with spaces, so the actual field content
is preserved instead of stripped.

Eike

--
OpenPGP/GnuPG encrypted mail preferred in all private communication.
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A
Care about Free Software, support the FSFE https://fsfe.org/support/?erack
Use LibreOffice! https://www.libreoffice.org/

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: