Sunday, December 10, 2017

Re: pattern for substitution including linefeed and carriage return

On 2017-12-10 09:52, Gary Johnson wrote:
> A pattern that will match that string is
>
> "Legend\nfor name\nis not found"
>
> :help /\_.

The "\_" convention holds for things other than "." to add the "and
include newline" connotation, so you can change your spaces to

Legend\_s\+for\_s\+name\_s\+is\_s\+not\_s\+found

which would allow a new-line as part of any of the whitespace in your
sentence.

-tim


--
--
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: