Sunday, December 10, 2017

Re: pattern for substitution including linefeed and carriage return

Am 12/10/2017 um 10:50 PM schrieb Erhy:

> In my CSV file this multiline fields have
> different number of lines, least two
> and contain various text.
>
> Is it also possible to delete such items at once?

>> :s/;"[^"]*\n\([^"]*\n\)[^"]*";/;"";/

As usual :%s..... applies the substitution
to all lines of a file (the complete syntax
of ranges is seen in ":help cmdline-ranges")

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: