Step 1
Search → Find → (goto Tab) Mark
Find what: ^Session.*$ Bookmark line
Regular expression (under Search Mode)Mark All (this will find the regex and highlights all the lines and bookmark them) Step 2
Search → Bookmark → Remove Bookmarked Lines
If it supports standard regex...
find:
^.*#RedirectMatch Permanent.*$
replace:
Replace with nothing.
Provide the following in the search dialog:
Find What: ^$\r\n
Replace With: (Leave it empty)
Click Replace All
Combining the best from all the answers

Using the "Replace all" functionality, you can delete a line directly by ending your pattern with:
$\n? $(\r\n)?
For instance, in your case :
.*#RedirectMatch Permanent.*$\n?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With