title: Exclude a certain match in a capturing group in regex
body: <p>I have a regex capturing group and I want to exclude a number if it matches a certain pattern also.</p>
  
  <p>This is my capturing group:</p>
  
  <p><a href="https://regex101.com/r/zL1tL8/1" rel="nofollow">https://regex101.com/r/zL1tL8/1</a></p>
  
  <p>if \n is followed by a number and character like "<strong>1st</strong>", "<strong>2nd</strong>", "<strong>4dffgsd</strong>", "<strong>3sf</strong>" then it should stop the match <strong>BEFORE</strong> the number.</p>
  
  <p>0-9 is important in the capturing group. </p>
  
  <p>So far I have this pattern <code>[0-9][a-zA-Z]+</code> to match a number followed by characters. How do I apply this to the capturing group as a condition?</p>
  
  <p>Update:</p>
  
  <p><a href="https://regex101.com/r/zL1tL8/4" rel="nofollow">https://regex101.com/r/zL1tL8/4</a></p>
  
  <p>Line 1 is wrong.</p>
  
  <p>It should not match a number followed by characters</p>