SyntaxFix
Write A Post
Hire A Developer
Questions
By default . (any character) does not match newline characters.
.
This means you can simply match zero or more of any character then append the end tag.
Find: <li><a href="#">.* Replace: $0</a>
<li><a href="#">.*
$0</a>