title: Regex to find and fix unmatched xml closing tags in notepad++
body: <p>I'm trying to simplify the process of correcting missing unmatched <code>verse</code> tags in an xml file that looks like this:</p>
  
  <pre><code>    &lt;verse number="21"&gt;words words words asdlkjf alsdf. &lt;/verse&gt;
      &lt;verse number="22"&gt;words words words arbitrary words. 
        &lt;verse number="23"&gt;more arbitrary text.&lt;/verse&gt;
        &lt;verse number="23"&gt;other arbitrary words. &lt;/chapter&gt;
  </code></pre>
  
  <p>I would like to use a regex in notepad++ to find the end of a line that starts with an arbitrary number of spaces and <code>&lt;verse</code> but does not end with <code>&lt;/verse&gt;</code> </p>
  
  <p>With the end of the line matched, I should be able use notepad++ find/replace to add the missing tag back in.</p>
  
  <p>Here is what I have so far, which matches every line (the whole line, unfortunately) that starts with spaces and <code>&lt;verse</code></p>
  
  <pre><code>^( +&lt;verse).*
  </code></pre>