title: Regex remove first empty line
body: <p>In a string like </p>
  
  <pre><code>
  
  
  z
  
  
  h
  
  
  
  
  </code></pre>
  
  <p>I want to remove all empty values with the regex <code>[\r\n]+$</code>
  You can see the <a href="https://regex101.com/r/H5XDbh/1" rel="nofollow noreferrer">example</a></p>
  
  <p>There is still remaning an empty line on top after the substitution, presumably line 3, according to Match Information section in the example above
  Any suggestions on how to have this empty value matched as well
  Thanks</p>