Reputation: 15
how to perform a search between multiple lines and delete selected text, let's the example I want to start a search from the word "SHARE THIS: " to < h4> select all text and delete it. When i search in 1 line i use .*?.*
SHARE THIS:
Good game and key. very good mate
Thanks for help! works
is a good game on the world.
<h4>
rates
Upvotes: 0
Views: 1399
Reputation: 91518
\bSHARE THIS:.+?<h4>\R?
LEAVE EMPTY
. matches newline
Explanation:
\b # word boundary
SHARE THIS: # literally
.+? # 1 or more any character, not greedy
<h4> # literally
\R? # any kind of linebreak, optional
Screen capture (before):
Screen capture (after):
Upvotes: 2
Reputation: 1451
a picture worth 1000 words. make sure you checkmark .matches newlines and choose regular expression.
Upvotes: 1