Am 12/10/2017 um 05:08 PM schrieb Erhy:
> ... This items have also textmarkers " e.g.
> 30.11.2017;"Name";"Legend
> for name
> is not found";"New York";
So You want to delete the contents of cases, where
the Last thing of the line is not the ", followed
by line(s) with no " at all, up to the line, which
contains, but does not begin with "?
(Which misses some cases, and will work only mostly,
as it depends on having the single ;" in the first
and the single "; on the last line of change.
So Lines with broken pairs of ", or with extra newline
without ", or lines with newline in the first or the
last field, would break or be ignored.)
The simple case might be done with:
:s/;"[^"]*\n\([^"]*\n\)[^"]*";/;"";/
OR do you want to remove the newlines only and keep
the text? Which I believe would be more complicated,
because of the newlines inside of the \(...\) pair.
Stucki
--
--
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:
Post a Comment