How to search between multiple lines in Notepad++ ??
Prahlad-Makwana4145 last edited by Prahlad-Makwana4145
I am trying to perform a search between multiple lines and also delete selected text.
Example show below :-
I want to start a search from this word “Description This:” To “<h3>” select all text and delete it.
When i search in 1st line i have used
Description This: Hello everyone. How are you ? Where are you ? I am going to School please come with me. Thank you for everything. <h3> Good to see you.
Thank you in advance.
guy038 last edited by guy038
Hello, Prahlad-Makwana4145 and All,
Hi, Happy New Year 2020 !
Regarding your problem, two solutions are possible :
Wrap aroundoption and select the
Regular expressionsearch mode
Use either the
Replace Allor the
First, the in-line modifier
(?-i)forces the search to care about casing of letters
After the part
^Descriptionlooks for the word
Description, with that exact case, at beginning of lines
Then the part
(?s), an in-line modifier too, means that any subsequent regex
.symbol will match any single character, including EOL ones
Now, the part
.*?represents the shortest range of any character till…
<h3>\Rwhich matches an
<h3>tag with its ine-break (
As replacement is empty, any text matched is just deleted
In the second search form, we replace the part
(.|\R)which stands, in the same way, for a single standard or an EOL character
Prahlad-Makwana4145 last edited by
Hello, Happy New Year 2020 ! @guy038 and All,
Thank you for Replay your both solution are work successfully for me.