Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I search for a text string that spans multiple lines?

search spans String text
0
Posted

How do I search for a text string that spans multiple lines?

0

expression atom. For example, to search for the text string “Hello World”, you can use the following search command: /Hello\_sWorld This will match the word “Hello” followed by a newline character and then the word “World” at the beginning of the next line. This will also match the word “Hello” immediately followed by a space character and then the word “World”. When searching for the “Hello World” string, to include the space characters at the end and beginning of the line, you can use the following search command: /Hello\_s\+World For more information, read :help 27.8 :help pattern-atoms :help /\_ :help pattern-searches 11.22.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123