Wondering how to write a regex in Notepad++ to eliminate the following lines of text from a file.
<div class="navigation">
<div class="alignleft">« <a href="/2008/11/28/107/" rel="prev">Subject Matter for Consideration</a>
</div>
<div class="alignright">
<a href="/2009/01/18/109/" rel="next">Book Reviews</a> »</div>
<br>
</div>
My first thought was to do it in 2 steps. For step 1 I used for the Replace tool Find what field:
<div class="navigation">.*</div>
thinking it would stop at the first </div>
. Instead
it deleted everything from the start of the string shown thru to the very last </div>
in the document - which sort of makes since because I guess the .* is greedy.
So how do I get it to stop at the 1st </div>
? Alternatively, is it possible to remove all the lines of code with a single regex?
Note that I have 300+ files with similar lines with the link and anchor text changing in each so being able to use Notepad's Find in Files option with regex would save a lot of work.
Thanks.