title: Javascript regex groups not capturing repeating group?
body: <p>I have the following regex and test strings:</p>
  
  <p><a href="https://i.stack.imgur.com/rAkuN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rAkuN.png" alt="enter image description here"></a></p>
  
  <p>When inspecting the matches I noticed that on Match 3 ("## smaller header") I have the following groups:</p>
  
  <ol>
  <li><h1>#</h1></li>
  <li>header</li>
  </ol>
  
  <p>rather than:</p>
  
  <ol>
  <li><h1>#</h1></li>
  <li><strong>smaller header</strong></li>
  </ol>
  
  <p>I want to capture "smaller header" on its own group.</p>