title: Find and replace Heading tags with regex in Notepad++
body: <p>There's a OCR scanned book and there's a tool which converts the OCR'd PDF to XML but most of the XML tags are wrong so there's another tool to fix it. But I need to break the lines from <code>&lt;h1&gt;</code> to <code>&lt;h5&gt;</code>, 1. &amp; 1.1. &amp; 1.1.1. so its easy to re-tag using the tool.</p>
  
  <p>The XML code looks like this:</p>
  
  <pre><code>`&lt;h1&gt;text&lt;/h1&gt;&lt;h2&gt;text&lt;/h3&gt;&lt;h3&gt;text&lt;/h3&gt;"
  </code></pre>
  
  <p>and </p>
  
  <pre><code>1.text.2.text.3.text.1.1.text.1.1.1.text 
  </code></pre>
  
  <p>And I need to break the lines like this using a Regex in notepad++.</p>
  
  <pre><code>&lt;h1&gt;text&lt;/h1&gt;
  &lt;h2&gt;text&lt;/h2&gt;
  &lt;h3&gt;text&lt;/h3&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>1.text.
  2.text.
  3.text.
  </code></pre>
  
  <p>and</p>
  
  <pre><code>1.1.text.
  1.1.1.text.
  </code></pre>
  
  <p>I used <code>&lt;/h1&gt;\s*</code> to find an <code>&lt;/h1&gt;\n</code> but it only breaks <code>h1</code> tags. I need to break all "H" tags and 1., 2., 1.1., 1.1.1. tags too.</p>